Reply
 
LinkBack Thread Tools Display Modes
Old 10-08-2007, 04:57 PM   #1 (permalink)
asimmons
Guest
 
Posts: n/a
Default App.config Connection String?

Whats is the connection strings spose to look like. The quickstart guide doesnt really say what it should be. I have sqlExpress and I'm not really sure what to put into this file to connect to sample db's with the sample application.

HTML Code:
<add name="DTools.SystemIntegrator..SDK.DAL.Properties.Settings.DToolsMasterTableConnectionString"
        connectionString="Data Source=SQLEXPRESS\dtoolsmsde;Initial Catalog=DToolsMasterTable;Integrated Security=True"
        providerName="System.Data.SqlClient" />

    <add name="DTools.SystemIntegrator.SDK.DAL.Properties.Settings.DToolsProjects40ConnectionString"
        connectionString="Data Source=SQLEXPRESS\dtoolsmsde;Initial Catalog=DToolsProjects40;Integrated Security=True"
        providerName="System.Data.SqlClient" />
  Reply With Quote
Old 10-08-2007, 04:59 PM   #2 (permalink)
asimmons
Guest
 
Posts: n/a
Default Error message!

I get this error message when trying to open the sample app.

System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
  Reply With Quote
Old 10-08-2007, 05:46 PM   #3 (permalink)
Administrator
 
Join Date: Nov 2006
Posts: 11
CoreyK is on a distinguished road
Default SDK Config

If you have installed SQLExpress with both integrated and SQL Server Security you simply need to change the "Server" value to point to the correct server and instance name. If no instance name was created, this will only need to be the name of the server.

Let me know if this solves your problem

Corey
CoreyK is offline   Reply With Quote
Old 10-08-2007, 06:04 PM   #4 (permalink)
asimmons
Guest
 
Posts: n/a
Default Doesn't work

I've tried everything. I have no clue what the integrated security is but I install SQLExpress with everything on it, so I assume that its there. My computer name is AARONSI and the instance name is SQLEXPRESS, I've tried localhost and various other things nothing seems to work, Should I remove my DTOOLSMSDE instance its still on here from the old sdk I was testing.

HTML Code:
<add name="DTools.SystemIntegrator..SDK.DAL.Properties.Settings.DToolsMasterTableConnectionString"
        connectionString="Data Source=localhost\SQLEXPRESS;Initial Catalog=DToolsMasterTable;Integrated 

Security=true"
        providerName="System.Data.SqlClient" />

    <add name="DTools.SystemIntegrator.SDK.DAL.Properties.Settings.DToolsProjects40ConnectionString"
        connectionString="Data Source=localhost\SQLEXPRESS;Initial Catalog=DToolsProjects40;Integrated 

Security=true"
        providerName="System.Data.SqlClient" />
  Reply With Quote
Old 10-08-2007, 07:47 PM   #5 (permalink)
asimmons
Guest
 
Posts: n/a
Default SDK sample App Project "Add new data source"

It says the DToolsProducts50_log.LDF file is corrupted. So i cant even generate a connection string threw .net. This kill the app. You said is a previous email that this file was corrupted. How do I get sqlExpress to generate a new .ldf

Last edited by asimmons; 10-08-2007 at 07:53 PM.
  Reply With Quote
Old 10-08-2007, 07:52 PM   #6 (permalink)
asimmons
Guest
 
Posts: n/a
Default

ok generated a new .ldf and the .net generated these connection strings, but it still doesnt work, its throwing the same error.

HTML Code:
<add name="DTools.SystemIntegrator.SDK.SampleApplication.Properties.Settings.DToolsProducts50ConnectionString"
      connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DToolsProducts50.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
      providerName="System.Data.SqlClient" />
    <add name="DTools.SystemIntegrator.SDK.SampleApplication.Properties.Settings.DToolsProjects50ConnectionString"
      connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DToolsProjects50.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
      providerName="System.Data.SqlClient" />
  Reply With Quote
Old 10-08-2007, 08:25 PM   #7 (permalink)
asimmons
Guest
 
Posts: n/a
Default

Now I get the dialog message "Bussiness manage database not found, verify connection string" but it seems to be the same error thrown from the code. when I add the new connection the test connection works fine
  Reply With Quote
Old 10-12-2007, 05:56 PM   #8 (permalink)
Junior Member
 
Bill Battaglia's Avatar
 
Join Date: Sep 2006
Posts: 28
Bill Battaglia is on a distinguished road
Send a message via Skype™ to Bill Battaglia
Default

If you are utilizing the Sample Applicaiton with the SDK try this:

connectionString="Data Source=(local);Initial Catalog=DToolsProducts50;Persist Security Info=True;User ID=d-toolsprojects;Password=d-toolsprojectsadmin"

The Sample dB is utilzing the old SI 4.x User ID and Password.

Bill
Bill Battaglia is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Connection Problems fryeguy SDK 6 08-13-2009 06:16 PM
Building a String value from CustomProperty chrisK Reports and Reporting Center 1 05-19-2009 01:10 PM
** Losing connection points in d-tools/visio ** Daniel D-Tools Menu and Commands 0 11-28-2007 02:55 PM
A couple connection questions. Josh Visio Schematics 1 11-13-2007 09:40 PM
Loss of Connection Point Functionality for Grouped Shapes Gabriel 'How Do I' Questions 0 03-07-2007 05:07 PM


All times are GMT. The time now is 07:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.