Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Keyword not supported: 'initial catalogue'.

Keyword not supported: 'initial catalogue'.

Scheduled Pinned Locked Moved C#
helpsecurity
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    haleemasher
    wrote on last edited by
    #1

    i have face an error in this connection string **"Keyword not supported: 'initial catalogue'."**Please help

    <add name="conn" connectionString="Data Source=.\SQLEXPRESS;Persist Security Info=True;Integrated Security=SSPI;AttachDbFilename=|DataDirectory|\Coupon Management.mdf;Initial Catalogue=Coupon Management"
    providerName="System.Data.SqlClient" />

    G S M H 4 Replies Last reply
    0
    • H haleemasher

      i have face an error in this connection string **"Keyword not supported: 'initial catalogue'."**Please help

      <add name="conn" connectionString="Data Source=.\SQLEXPRESS;Persist Security Info=True;Integrated Security=SSPI;AttachDbFilename=|DataDirectory|\Coupon Management.mdf;Initial Catalogue=Coupon Management"
      providerName="System.Data.SqlClient" />

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      Whenever I have problem with connection string I always use the following page: http://connectionstrings.com/[^]

      Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion

      1 Reply Last reply
      0
      • H haleemasher

        i have face an error in this connection string **"Keyword not supported: 'initial catalogue'."**Please help

        <add name="conn" connectionString="Data Source=.\SQLEXPRESS;Persist Security Info=True;Integrated Security=SSPI;AttachDbFilename=|DataDirectory|\Coupon Management.mdf;Initial Catalogue=Coupon Management"
        providerName="System.Data.SqlClient" />

        S Offline
        S Offline
        Sunil Pandita
        wrote on last edited by
        #3

        use initial catalog instead. Hope this helps

        1 Reply Last reply
        0
        • H haleemasher

          i have face an error in this connection string **"Keyword not supported: 'initial catalogue'."**Please help

          <add name="conn" connectionString="Data Source=.\SQLEXPRESS;Persist Security Info=True;Integrated Security=SSPI;AttachDbFilename=|DataDirectory|\Coupon Management.mdf;Initial Catalogue=Coupon Management"
          providerName="System.Data.SqlClient" />

          M Offline
          M Offline
          Md Marufuzzaman
          wrote on last edited by
          #4

          Try the following:

          add name="NameOftheConnection" ConnectionString="Data Source=server name ;Initial Catalog= batabase neme;User ID= user id;Password= password" providerName="System.Data.SqlClient"

          Thanks Md. Marufuzzaman


          Don't forget to click [Vote] / [Good Answer] on the post(s) that helped you. I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.

          1 Reply Last reply
          0
          • H haleemasher

            i have face an error in this connection string **"Keyword not supported: 'initial catalogue'."**Please help

            <add name="conn" connectionString="Data Source=.\SQLEXPRESS;Persist Security Info=True;Integrated Security=SSPI;AttachDbFilename=|DataDirectory|\Coupon Management.mdf;Initial Catalogue=Coupon Management"
            providerName="System.Data.SqlClient" />

            H Offline
            H Offline
            hamed vojdani
            wrote on last edited by
            #5

            hi, first initial catalog not initial catalogue :) second Initial Catalog and AttachDbFilename tags are ways to specify database place if use Initial Catalog mean that database is on server which Data Source tag says and connection must be opened toward database which it's name is in Initial Catalog and if use AttachDbFilename we specified physical place of database file if database file is on local machine and is not attached to local SQL server use AttachDbFilename else use Initial Catalog :thumbsup:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups