|
Not a good Sh@rpShooter, you missed your target.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
|
|
|
|
|
|
Hi,
I've recently upgraded to VS2010 which includes SQL Sever Express. I also have access to every version of SQL Sever, but I'm not sure which version I should be running so let me explain what I'm doing.
I would like to develop applications that use SQL Server as the database engine and distribute these as commercially available. The applications are simple applications such as a Recipe Manager which also may hook into an food inventory manager. So I don't need something with lots of bells and whistles. I'm also going to develop some SQL Web Applications, which may use a few databases as well. I have an IIS Web Server on another machine.
Here's what I'm thinking but I could be totally off base.
On my development machine, I would run either SQL Express or SQL Developer, not sure which is the right choice here. Is setting up SQL Developer more complex than SQL Express? Also, does SQL Developer let you distribute SQL Express with the installer of your application?
On my Webserver, I was thinking of running either SQL Web, or SQL Enterprise, I'm not sure of the right choice here. Also, is one version more difficult to setup and configure than another?
Thank you for your input...
Glenn
|
|
|
|
|
Setup is similar for any version. Since Express is free so I would suggest using that, with the the end user having the option to connect to other SQL servers.
Also if you program using a different version than you plan to distribute you will have problems. We currently use 2008 for development and 2000 for production (working on upgrading), this has caused some problems.
As to distribution I cannot help you.
|
|
|
|
|
You can distribute SQL Express with your Application - the distribution licence is free.
I suggest developing with the tool the user will be using (or that your app wil be using) - SQL Express.
SQL Developer is a Full Enteprise version with user license restrictions I believe - 1 Developer, you will still have to Deploy your databases to another Production Server with the appropriate licensing.( I use SQL 2008 Standard as I don't need the Mirroring and some other stuff available in the Enterprise version).
I don't speak Idiot - please talk slowly and clearly
'This space for rent'
Driven to the arms of Heineken by the wife
|
|
|
|
|
Hi guys,
I need to find the IP address of an INSATNCE of sql server 2005.
But I have also a SQL 2005 instance installed taht's named FOO\SQL2005. I
need to use the IP address in a connection string as follows (using it to connect to an sql sever remote database .mdf)
string sConnection = "Data Source= 192.168.1.1,1433;Initial Catalog=GMAO;User ID=sa;Password=sa;";
I have no idea how to find the IP address fo the 2005 instance. ipconfig wont' do that.
So how do I find the IP of the 2005 sql server instance?
Thanks,
|
|
|
|
|
Use ping FOO on a machine that resolves it?
|
|
|
|
|
Hi,
Sorry for the instance name I gave.How do I know the name of the instance I work with???
When I open sql server management studio,it writes ADMIN-PC (SQL Server 9.0.1399 - sa).Is that the instance??
Thanks
|
|
|
|
|
You can know instance name of sql server by using following command.
SELECT @@SERVERNAME AS 'Server Name'
Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Hi,
where I write this commande?In my csharp code?or in the cmd tool?
Thanks
|
|
|
|
|
In a new SQL Query window.
|
|
|
|
|
Hi JHizzle,
I create a new sql command like this:
string adr="SELECT @@SERVERNAME AS 'Server Name';";
string sConnection = "Data Source= adr,1433;Initial Catalog=GMAO;User ID=sa;Password=sa;";
When running the application, this error appears:
Sql server adress not found:adr,1433
added to this notification:
Warning 1 The variable 'adr' is assigned but its value is never used
What is the problem??
Thanks
|
|
|
|
|
Ok, wait, back up here.
Do you or do you not have remote access to the server via SQL Server management studio or query analyzer? The previous answer should have been run using a query window within either of these.
What does you actual connection string contain: is it the SQL server name or its IP address? If it's the name and it works from your deelopment box, use that in a command prompt with the ping command to grab the IP address.
|
|
|
|
|
Hi,
I have remote access to the server(I go to :right click on the server name in sql server managment->connections here I find that remote connections to the server allowed).I don't understand what u mean by query analyzer??
My string connexion should contain the SQL server 'IP @ like this:
string adr="SELECT @@SERVERNAME AS 'Server Name';";
string sConnection = "Data Source= adr,1433;Initial Catalog=GMAO;User ID=sa;Password=sa;";
Thanks
|
|
|
|
|
Ok, I think I know what you're meaning now. Have you tried just assigning Data Source as ADMIN-PC?
The brackets after are just a versioning thing within SQL. If you want the IP address, command prompt -> ping admin-pc
|
|
|
|
|
Hi,
ping admin-pc gives this result:
C:\Users\Admin>ping admin-pc
Pinging Admin-PC [fe80::cc28:8ea3:82ea:4c4f%13] with 32 bytes of data:
Reply from fe80::cc28:8ea3:82ea:4c4f%13: time<1ms
Reply from fe80::cc28:8ea3:82ea:4c4f%13: time<1ms
Reply from fe80::cc28:8ea3:82ea:4c4f%13: time<1ms
Reply from fe80::cc28:8ea3:82ea:4c4f%13: time<1ms
Ping statistics for fe80::cc28:8ea3:82ea:4c4f%13:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
where is the @IP??
I am really disturbed
thanks
|
|
|
|
|
It's right there. That thar be a IPv6 address.
I don't know what your network setup is but I suspect you're not going to be able to mess with it as I am assuming company network, in any case, go talk to your infrastructure team to get the IPv4 version for that SQL server instance.
|
|
|
|
|
The problem is that you're asking Sql server where Sql server is located. The name "ADMIN-PC" points to an IP-adress. Your data source would be "ADMIN-PC\SQL2005", or something similar.
It may very well be that you require the IP-adress to connect from the PDA to the server. That requires you to know at least the connection-details of your server, and it will require a network-connection.
I are Troll
|
|
|
|
|
Hi Eddy,
If the name of my server in sql server is:ADMIN-PC (SQL Server 9.0.1399 - sa),what sould be the datasource field???is it like that:
string sConnection = "Data Source= ADMIN-PC\\SQL Server 9.0.1399 - sa,1433;Initial Catalog=GMAO;User ID=sa;Password=sa;";
Thanks for u clarification
|
|
|
|
|
Something along these lines;
string sConnection = "Data Source= ADMIN-PC\\SQL2005;Initial Catalog=GMAO;User ID=sa;Password=sa;";
or, for the default instance;
string sConnection = "Data Source= ADMIN-PC;Initial Catalog=GMAO;User ID=sa;Password=sa;";
..and no, it's not going to be that simple. Take a deep breath and make some coffee
--edit;
Location and instance-name of Sql Server are determined when you install it[^].
Your PDA-application needs to "know" where this server is, and it needs to be in the same network as that computer. At this moment I'm still wondering whether you have network-connectivity between those two.
I are Troll
modified on Friday, May 7, 2010 11:34 AM
|
|
|
|
|
Hi Eddy,
I have not a real PDA to check.I wanna use only the emulator on my application.
Also I changed my code someway:
string adr="SELECT @@SERVERNAME AS 'Server Name';";
string sConnection = "Data Source=" + adr + ",1433;Initial Catalog=GMAO;User ID=sa;Password=sa;";
but not knowing my SQL SERVER
If I installed saye my sql server and don't get the info about the instance,noway to know it after????
I am really boulversing
Thanks
|
|
|
|
|
Tunisien86 wrote: If I installed saye my sql server and don't get the info about the instance,noway to know it after????
Well, you can, using the very same SQL statement that you're posting.
- Open Sql Management Studio Express, and connect to the server
- Start a new query
- Execute the statement
SELECT @@SERVERNAME
That would result in a string in the format "Computername/Instancename".
I'd recommend creating a small application to do a simple select against that server; It's easier to build and limits the scope of the problem to "connect to Sql Server from a PDA".
I are Troll
|
|
|
|
|
|
Tunisien86 wrote: I found the solution ther in this post:
My string connection is like that now:
That's looking better
Tunisien86 wrote: But Eddy still some problems in my TCP/IP connection
There's some bumps on the road, but we can tackle them one atta time. I'd suggest starting with a "New Project", and to create a small prototype application that connects to the server and displays the results of the query, or the Exception if one is generated.
Your connectionstring should be enough to allow you to create a SqlConnection .
I are Troll
|
|
|
|
|
Hi Eddy,
As u told me,I open a new thread:SQL server name not found:Admin-PC\MSSQLSERVER,1433
but still not working yet
Thanks Eddy
(after this long collaboration between as i suggest if u like we meet in msn or skype as freinds ok
my skype is :elgafsiensi and my msn is:marwenG@hotmail.fr)
|
|
|
|