* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download PDF Version
Survey
Document related concepts
Transcript
https://support.fluidhosting.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=126 How do I set up ODBC, DSN/DSN-less connection string? Author: Fluid Hosting, LLC Created On: 27 Apr 2004 02:13 PM If you are using DSN connection, you will need to enable ODBC and setting up the DSN From your control panel. ODBC can be enable from your control panel: » Login to your Control Panel. » Click ODBC under Databases. » Click the off icon next to ODBC Service For DSN connection, you will need to add and configure the proper driver. To do so: » Go back to where you turn on your ODBC (Control Panel->ODBC). » If your ODBC has turned on, you should see the list of Available ODBC Drivers. » Click ADD icon next to SQL Server. » On next page, you will need to fill in the database information to set up DSN. » The DSN name can be anything. Note that the DSN name will be prefixed with "youraccount-". For example, the DSN name for account name "test" with look like "test-anydsnname". » For Server, fill in the MSSQL Server name. » Database> is the name of your MSSQL database. It should be something similar to "youraccount_dbname". » Description is to describe your database. » You can learn about the rest (which are optional) from SQLConfigDataSource » Click "Create" button to finish the DSN setup. Once you are done, on the next page, you should see Your DSN section with the driver for the DSN you just created. Example: » For a DSN connection string: "DSN=youraccount-dsnname" » For a DSN-less connection string: » With ODBC: "Driver={SQL Server}; Server=MyServerName; Database=myDatabaseName; UID=myUsername; PWD=myPassword" » With OLEDB (Recommended): "Provider=sqloledb; Data Source=myServerName; Initial Catalog=myDatabaseName; User Id=myUsername; Password=myPassword" Note: Read this article to see how to find out your server name. Page 1/2 Powered By Kayako SupportSuite https://support.fluidhosting.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=126 Page 2/2 Powered By Kayako SupportSuite