Showing posts with label setting. Show all posts
Showing posts with label setting. Show all posts

Monday, March 19, 2012

Connection.TRANSACTION_SERIALIZABLE

I have a java developer using a connection setting of
Connection.TRANSACTION_SERIALIZABLE to our SQL Server. How does this
connection setting interact with the code it touches? If it calls a stored
procedure that is using a nolock hint will it ignore it?
Thank!
This doesn't appear to be an ODBC issue. Perhaps if you can't get a
response in this alias you could try a Java or JDBC alias?
| Thread-Topic: Connection.TRANSACTION_SERIALIZABLE
| thread-index: AcWsS/nqoR9CPWgEQMKylP56fG3lXw==
| X-WBNR-Posting-Host: 199.181.134.212
| From: "=?Utf-8?B?TWljaGFlbFc=?=" <MichaelW@.discussions.microsoft.com>
| Subject: Connection.TRANSACTION_SERIALIZABLE
| Date: Sun, 28 Aug 2005 20:44:36 -0700
| Lines: 6
| Message-ID: <FC25F063-3ECA-42A7-9095-642ECCDB8CBC@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.odbc
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.odbc:2628
| X-Tomcat-NG: microsoft.public.sqlserver.odbc
|
| I have a java developer using a connection setting of
| Connection.TRANSACTION_SERIALIZABLE to our SQL Server. How does this
| connection setting interact with the code it touches? If it calls a
stored
| procedure that is using a nolock hint will it ignore it?
|
| Thank!
|
|||I'm not seeing a JDBC section on here. Using non Microsoft JDBC connectiong
to SQL server.
"Warren Read" wrote:

> This doesn't appear to be an ODBC issue. Perhaps if you can't get a
> response in this alias you could try a Java or JDBC alias?
> --
> | Thread-Topic: Connection.TRANSACTION_SERIALIZABLE
> | thread-index: AcWsS/nqoR9CPWgEQMKylP56fG3lXw==
> | X-WBNR-Posting-Host: 199.181.134.212
> | From: "=?Utf-8?B?TWljaGFlbFc=?=" <MichaelW@.discussions.microsoft.com>
> | Subject: Connection.TRANSACTION_SERIALIZABLE
> | Date: Sun, 28 Aug 2005 20:44:36 -0700
> | Lines: 6
> | Message-ID: <FC25F063-3ECA-42A7-9095-642ECCDB8CBC@.microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 7bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.sqlserver.odbc
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
> | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.odbc:2628
> | X-Tomcat-NG: microsoft.public.sqlserver.odbc
> |
> | I have a java developer using a connection setting of
> | Connection.TRANSACTION_SERIALIZABLE to our SQL Server. How does this
> | connection setting interact with the code it touches? If it calls a
> stored
> | procedure that is using a nolock hint will it ignore it?
> |
> | Thank!
> |
>
|||Try microsoft.public.sqlserver.jdbcdriver
Perhaps someone on this alias can address your question.
Good luck!
| Thread-Topic: Connection.TRANSACTION_SERIALIZABLE
| thread-index: AcWujdAXO+ZlWwwzSwq0xDayA4RnlA==
| X-WBNR-Posting-Host: 199.181.134.212
| From: "=?Utf-8?B?TWljaGFlbFc=?=" <MichaelW@.discussions.microsoft.com>
| References: <FC25F063-3ECA-42A7-9095-642ECCDB8CBC@.microsoft.com>
<sBlO1worFHA.1204@.TK2MSFTNGXA01.phx.gbl>
| Subject: RE: Connection.TRANSACTION_SERIALIZABLE
| Date: Wed, 31 Aug 2005 17:40:55 -0700
| Lines: 41
| Message-ID: <29F51F66-4E80-452C-B2CC-D27A28063A20@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.odbc
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.odbc:2648
| X-Tomcat-NG: microsoft.public.sqlserver.odbc
|
| I'm not seeing a JDBC section on here. Using non Microsoft JDBC
connectiong
| to SQL server.
|
| "Warren Read" wrote:
|
| > This doesn't appear to be an ODBC issue. Perhaps if you can't get a
| > response in this alias you could try a Java or JDBC alias?
| > --
| > | Thread-Topic: Connection.TRANSACTION_SERIALIZABLE
| > | thread-index: AcWsS/nqoR9CPWgEQMKylP56fG3lXw==
| > | X-WBNR-Posting-Host: 199.181.134.212
| > | From: "=?Utf-8?B?TWljaGFlbFc=?=" <MichaelW@.discussions.microsoft.com>
| > | Subject: Connection.TRANSACTION_SERIALIZABLE
| > | Date: Sun, 28 Aug 2005 20:44:36 -0700
| > | Lines: 6
| > | Message-ID: <FC25F063-3ECA-42A7-9095-642ECCDB8CBC@.microsoft.com>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.sqlserver.odbc
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.odbc:2628
| > | X-Tomcat-NG: microsoft.public.sqlserver.odbc
| > |
| > | I have a java developer using a connection setting of
| > | Connection.TRANSACTION_SERIALIZABLE to our SQL Server. How does this
| > | connection setting interact with the code it touches? If it calls a
| > stored
| > | procedure that is using a nolock hint will it ignore it?
| > |
| > | Thank!
| > |
| >
| >
|

Connection.TRANSACTION_SERIALIZABLE

I have a Java developer using a connection setting of
Connection.TRANSACTION_SERIALIZABLE to our SQL Server. How does this
connection setting interact with the code it touches? If it calls a stored
procedure that is using a nolock hint will it ignore it?
Thank!This doesn't appear to be an ODBC issue. Perhaps if you can't get a
response in this alias you could try a Java or JDBC alias?
--
| Thread-Topic: Connection.TRANSACTION_SERIALIZABLE
| thread-index: AcWsS/nqoR9CPWgEQMKylP56fG3lXw==
| X-WBNR-Posting-Host: 199.181.134.212
| From: "examnotes" <MichaelW@.discussions.microsoft.com>
| Subject: Connection.TRANSACTION_SERIALIZABLE
| Date: Sun, 28 Aug 2005 20:44:36 -0700
| Lines: 6
| Message-ID: <FC25F063-3ECA-42A7-9095-642ECCDB8CBC@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.odbc
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.odbc:2628
| X-Tomcat-NG: microsoft.public.sqlserver.odbc
|
| I have a Java developer using a connection setting of
| Connection.TRANSACTION_SERIALIZABLE to our SQL Server. How does this
| connection setting interact with the code it touches? If it calls a
stored
| procedure that is using a nolock hint will it ignore it?
|
| Thank!
||||I'm not seeing a JDBC section on here. Using non Microsoft JDBC connectiong
to SQL server.
"Warren Read" wrote:

> This doesn't appear to be an ODBC issue. Perhaps if you can't get a
> response in this alias you could try a Java or JDBC alias?
> --
> | Thread-Topic: Connection.TRANSACTION_SERIALIZABLE
> | thread-index: AcWsS/nqoR9CPWgEQMKylP56fG3lXw==
> | X-WBNR-Posting-Host: 199.181.134.212
> | From: "examnotes" <MichaelW@.discussions.microsoft.com>
> | Subject: Connection.TRANSACTION_SERIALIZABLE
> | Date: Sun, 28 Aug 2005 20:44:36 -0700
> | Lines: 6
> | Message-ID: <FC25F063-3ECA-42A7-9095-642ECCDB8CBC@.microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 7bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.sqlserver.odbc
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
> | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.odbc:2628
> | X-Tomcat-NG: microsoft.public.sqlserver.odbc
> |
> | I have a Java developer using a connection setting of
> | Connection.TRANSACTION_SERIALIZABLE to our SQL Server. How does this
> | connection setting interact with the code it touches? If it calls a
> stored
> | procedure that is using a nolock hint will it ignore it?
> |
> | Thank!
> |
>|||Try microsoft.public.sqlserver.jdbcdriver
Perhaps someone on this alias can address your question.
Good luck!
--
| Thread-Topic: Connection.TRANSACTION_SERIALIZABLE
| thread-index: AcWujdAXO+ZlWwwzSwq0xDayA4RnlA==
| X-WBNR-Posting-Host: 199.181.134.212
| From: "examnotes" <MichaelW@.discussions.microsoft.com>
| References: <FC25F063-3ECA-42A7-9095-642ECCDB8CBC@.microsoft.com>
<sBlO1worFHA.1204@.TK2MSFTNGXA01.phx.gbl>
| Subject: RE: Connection.TRANSACTION_SERIALIZABLE
| Date: Wed, 31 Aug 2005 17:40:55 -0700
| Lines: 41
| Message-ID: <29F51F66-4E80-452C-B2CC-D27A28063A20@.microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.sqlserver.odbc
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.odbc:2648
| X-Tomcat-NG: microsoft.public.sqlserver.odbc
|
| I'm not seeing a JDBC section on here. Using non Microsoft JDBC
connectiong
| to SQL server.
|
| "Warren Read" wrote:
|
| > This doesn't appear to be an ODBC issue. Perhaps if you can't get a
| > response in this alias you could try a Java or JDBC alias?
| > --
| > | Thread-Topic: Connection.TRANSACTION_SERIALIZABLE
| > | thread-index: AcWsS/nqoR9CPWgEQMKylP56fG3lXw==
| > | X-WBNR-Posting-Host: 199.181.134.212
| > | From: "examnotes" <MichaelW@.discussions.microsoft.com>
| > | Subject: Connection.TRANSACTION_SERIALIZABLE
| > | Date: Sun, 28 Aug 2005 20:44:36 -0700
| > | Lines: 6
| > | Message-ID: <FC25F063-3ECA-42A7-9095-642ECCDB8CBC@.microsoft.com>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.sqlserver.odbc
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.odbc:2628
| > | X-Tomcat-NG: microsoft.public.sqlserver.odbc
| > |
| > | I have a Java developer using a connection setting of
| > | Connection.TRANSACTION_SERIALIZABLE to our SQL Server. How does this
| > | connection setting interact with the code it touches? If it calls a
| > stored
| > | procedure that is using a nolock hint will it ignore it?
| > |
| > | Thank!
| > |
| >
| >
|

Sunday, March 11, 2012

Connection.CommandTimeout

Running VB6 with SQL Server 7, opening a connection and setting this
parameter by Conn.CommandTimeout does not always seem to force a
command (stored procedure) executed through Conn.Execute to timeout
after the specified period. Is anybody able to suggest what may be
going on here.

Thankspeter.dawson@.kingsch.nhs.uk (Petros) wrote in message news:<478ba33e.0309300533.2e31f9f7@.posting.google.com>...
> Running VB6 with SQL Server 7, opening a connection and setting this
> parameter by Conn.CommandTimeout does not always seem to force a
> command (stored procedure) executed through Conn.Execute to timeout
> after the specified period. Is anybody able to suggest what may be
> going on here.
> Thanks

CommandTimeout starts when the database server has accepted the
command and ends when the database server returns the first record. If
the server or network is busy (or not answering at all), this setting
won't help you to get control again.|||Petros (peter.dawson@.kingsch.nhs.uk) writes:
> Running VB6 with SQL Server 7, opening a connection and setting this
> parameter by Conn.CommandTimeout does not always seem to force a
> command (stored procedure) executed through Conn.Execute to timeout
> after the specified period. Is anybody able to suggest what may be
> going on here.

If you are also running queries from the command object, you need
to see the .CommandTimeout for that object too; the value is not
inherited from the connection object.

--
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp

Thursday, March 8, 2012

Connection to remote server using VPN

Hi - I am a relative newbie to setting up and configuring servers so am a
bit baffled by all the server techno-speak.
My issue - I have a client who is based about 40 miles away who want me to
do some database work for them. I am a freelancer and he is a small company
who relies on a non sql server specific moonlighter for tech support (it's
not as wing and prayer as it might seem!).
They bought MS Small Biz server which includes SQL 2000. I tried to install
it on my XPHome pc but came to the view that you need a 2000/2003 server to
run anything bigger than a 4Gb database. Given that the db will be much
bigger than 4Gb we therefore need to install SQL Server on his server and
run it as a sql server with me installing query analyser and eneterprise
manager on my PC and connect. All fine in theory. Now for security I am
assuming the best way to connect is by using VPN? If this is so, can any
one point me to any info on setting up my end + his end and what may be
required h/w + s/w etc?
His moonlight techie says I need a static IP address... I think I have a
dynamic one, and that all he need to do is set up some filters his end. I
also have a Lynksys router (BEFSR41) and Norton Proff Fiewall. He has router
and firewall his end.
I looked for past postings and find ref to this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad
but now it's dead.
Any help much appreciated!
Happy New Year.
Andythere is a thread going on at www.sqlservercentral.com
http://www.sqlservercentral.com/forum/link.asp?TOPIC_ID=19507
maybe that will get you on track
jobi
"Andreww" <andrew@.fake.com> wrote in message
news:kwyIb.2561$tH.23625741@.news-text.cableinet.net...
> Hi - I am a relative newbie to setting up and configuring servers so am a
> bit baffled by all the server techno-speak.
> My issue - I have a client who is based about 40 miles away who want me to
> do some database work for them. I am a freelancer and he is a small
company
> who relies on a non sql server specific moonlighter for tech support (it's
> not as wing and prayer as it might seem!).
> They bought MS Small Biz server which includes SQL 2000. I tried to
install
> it on my XPHome pc but came to the view that you need a 2000/2003 server
to
> run anything bigger than a 4Gb database. Given that the db will be much
> bigger than 4Gb we therefore need to install SQL Server on his server and
> run it as a sql server with me installing query analyser and eneterprise
> manager on my PC and connect. All fine in theory. Now for security I am
> assuming the best way to connect is by using VPN? If this is so, can any
> one point me to any info on setting up my end + his end and what may be
> required h/w + s/w etc?
> His moonlight techie says I need a static IP address... I think I have a
> dynamic one, and that all he need to do is set up some filters his end. I
> also have a Lynksys router (BEFSR41) and Norton Proff Fiewall. He has
router
> and firewall his end.
> I looked for past postings and find ref to this link
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad
> but now it's dead.
> Any help much appreciated!
> Happy New Year.
> Andy
>|||Jobi - thanks. I took a look and it seems more about how to set things up
once the VPN is set up... which helps.
In the firts instance, my question was about... is VPN the way to connect a
SQL client to server?
Help appreciated... even if it's that I'm in the wrong news group!
Regards
Andy
"jobi" <jobi@.reply2.group> wrote in message
news:bsud5v$fhp$1@.reader08.wxs.nl...
> there is a thread going on at www.sqlservercentral.com
> http://www.sqlservercentral.com/forum/link.asp?TOPIC_ID=19507
> maybe that will get you on track
> jobi
> "Andreww" <andrew@.fake.com> wrote in message
> news:kwyIb.2561$tH.23625741@.news-text.cableinet.net...
> > Hi - I am a relative newbie to setting up and configuring servers so am
a
> > bit baffled by all the server techno-speak.
> >
> > My issue - I have a client who is based about 40 miles away who want me
to
> > do some database work for them. I am a freelancer and he is a small
> company
> > who relies on a non sql server specific moonlighter for tech support
(it's
> > not as wing and prayer as it might seem!).
> >
> > They bought MS Small Biz server which includes SQL 2000. I tried to
> install
> > it on my XPHome pc but came to the view that you need a 2000/2003 server
> to
> > run anything bigger than a 4Gb database. Given that the db will be much
> > bigger than 4Gb we therefore need to install SQL Server on his server
and
> > run it as a sql server with me installing query analyser and eneterprise
> > manager on my PC and connect. All fine in theory. Now for security I am
> > assuming the best way to connect is by using VPN? If this is so, can
any
> > one point me to any info on setting up my end + his end and what may be
> > required h/w + s/w etc?
> >
> > His moonlight techie says I need a static IP address... I think I have a
> > dynamic one, and that all he need to do is set up some filters his end.
I
> > also have a Lynksys router (BEFSR41) and Norton Proff Fiewall. He has
> router
> > and firewall his end.
> >
> > I looked for past postings and find ref to this link
> >
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adminsql/ad
> > but now it's dead.
> >
> > Any help much appreciated!
> >
> > Happy New Year.
> >
> > Andy
> >
> >
>|||"In the firts instance, my question was about... is VPN the way to connect a
SQL client to server?"
Given what little knowledge I have about your situation, I would say that VPN is your best bet. It's going to be the most economical, practical, and easiest way to connect to your client using SQL. Anything else would be expensive and/or unsecure.
But that's just my opinion...
Hope this helps.
Shaun

Friday, February 24, 2012

Connection string Problem

Hi!

I have a very silly problem here.

i am setting some variables here from c# code.

Everything works fine except for Conn string. I understand statements that works fine in SQL does not act same in C# because of string literals.

I need an extra qoute \"" ......."/" that would execute in C#

\""Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Integrated Security=SSPI;"\"

where as in c#

setting variable value as :

string scriptTaskConnectST = @."Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Integrated Security=SSPI;";

executing this through c# code

jobCommand = new SqlCommand("xp_cmdshell 'dtexec /f \"" + path + "\" /Set \\package.Variables[User::ArchivePackageName].Properties[Value];\"" + name + "\" /Set \\package.Variables[User::ScriptTaskConnectST].Properties[Value];\"" + scriptTaskConnectST + "\"

When i check i resulting vaue i get this for scriptTaskConnectST as

/"......\"

\"Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Integrated Security=SSPI;\"

how should i format it to get \""......"\"

Thanks,

Jasm

if i'm not mistaken, you've already asked this question in a previous incarnation. if true, i believe that i've already suggested that you use sql server agent stored procedures to run your package. you can execute any stored procedure from c# provided that your code has the proper permissions.

does my suggestion not work for you? if so, please tell me why that is.

|||

I need to execute the packages through C# UI. Executing Throught the Agent is a secnd case now. But i found a work around method to set the connection string in my main package and set the value into the varaible which is used by all the pther sub packages. and it is working now.

I am already executing Stored proceedure through c# now for other implementations.

Thanks for your Suggestion.

Once i finish working through the UI i will try to execute throught the agent.

Jas

Connection String Length error

Does anyone know if there is a limit to the length a connection string can
be? Or if there is a configuration setting that I am missing. We have a
XML doc which contains the connection strings for multiple database which we
pass to our custom data extension which then figures out which database to
connect to based on other parameters which are passed in. The error we are
getting is that the connection string cannot be > than 1024 characters. Any
help would be appreciated.
-JonDon't know but you could stuff a simple connection string with spaces to see
if it wokrs at 1023 and fails at 1025 for example...
Is such as length expected ? Heve you checked what the connection string
actually contains (especially white spaces ?) Looks really huge...
--
Patrice
<Jon Meyer> a écrit dans le message de news:
eqWjRnUwGHA.4700@.TK2MSFTNGP03.phx.gbl...
> Does anyone know if there is a limit to the length a connection string can
> be? Or if there is a configuration setting that I am missing. We have a
> XML doc which contains the connection strings for multiple database which
> we pass to our custom data extension which then figures out which database
> to connect to based on other parameters which are passed in. The error we
> are getting is that the connection string cannot be > than 1024
> characters. Any help would be appreciated.
> -Jon
>|||I have tried passing in a connection string which is less than 1024
characters and the problem is resolved. There is another thing I have
learned. We have an application which programatically adds a subscription
to the server. When a subscription is added in this manner the reports work
as expected. However, if I try to run the report from the report manager
via the intranet the report fails as described below. I not sure if this
information is of any help. As a further check I'll run some diff tools
against what I'm passing in. Maybe there is a difference I cannot see by
looking at the text.
-Jon
"Patrice" <scribe@.chez.com> wrote in message
news:eTIjY8UwGHA.4872@.TK2MSFTNGP02.phx.gbl...
> Don't know but you could stuff a simple connection string with spaces to
> see if it wokrs at 1023 and fails at 1025 for example...
> Is such as length expected ? Heve you checked what the connection string
> actually contains (especially white spaces ?) Looks really huge...
> --
> Patrice
> <Jon Meyer> a écrit dans le message de news:
> eqWjRnUwGHA.4700@.TK2MSFTNGP03.phx.gbl...
>> Does anyone know if there is a limit to the length a connection string
>> can be? Or if there is a configuration setting that I am missing. We
>> have a XML doc which contains the connection strings for multiple
>> database which we pass to our custom data extension which then figures
>> out which database to connect to based on other parameters which are
>> passed in. The error we are getting is that the connection string cannot
>> be > than 1024 characters. Any help would be appreciated.
>> -Jon
>|||Really strange. 1024 is more than 10 lines of 80 characters which look like
really huge for a connection string... My guess would be that you have
indenting or something similar in your XML file that causes white spaces to
be added...
--
Patrice
<Jon Meyer> a écrit dans le message de news:
e2sL%23sVwGHA.5044@.TK2MSFTNGP05.phx.gbl...
>I have tried passing in a connection string which is less than 1024
>characters and the problem is resolved. There is another thing I have
>learned. We have an application which programatically adds a subscription
>to the server. When a subscription is added in this manner the reports
>work as expected. However, if I try to run the report from the report
>manager via the intranet the report fails as described below. I not sure
>if this information is of any help. As a further check I'll run some diff
>tools against what I'm passing in. Maybe there is a difference I cannot
>see by looking at the text.
> -Jon
>
> "Patrice" <scribe@.chez.com> wrote in message
> news:eTIjY8UwGHA.4872@.TK2MSFTNGP02.phx.gbl...
>> Don't know but you could stuff a simple connection string with spaces to
>> see if it wokrs at 1023 and fails at 1025 for example...
>> Is such as length expected ? Heve you checked what the connection string
>> actually contains (especially white spaces ?) Looks really huge...
>> --
>> Patrice
>> <Jon Meyer> a écrit dans le message de news:
>> eqWjRnUwGHA.4700@.TK2MSFTNGP03.phx.gbl...
>> Does anyone know if there is a limit to the length a connection string
>> can be? Or if there is a configuration setting that I am missing. We
>> have a XML doc which contains the connection strings for multiple
>> database which we pass to our custom data extension which then figures
>> out which database to connect to based on other parameters which are
>> passed in. The error we are getting is that the connection string
>> cannot be > than 1024 characters. Any help would be appreciated.
>> -Jon
>>
>

Sunday, February 19, 2012

Connection string and external web host.

Hey guys, I'm havnig a bit of trouble setting up my sql reporting tools. My webhost's technical support either does not know what they're doing or might just not care. They 've been unelpful so I'm resorting to asking a stupid noob question again. I hope you guys can help me out.

On my home pc, all i woul have to input is

Data Source=mycomputername\sqlexpress;AttachDbFilename=c:\document and settings\administrator\mydocuments\test8_data1.mdf;Initial Catalog=test

and it would work.

However, when I upload thist stuff to my host and in their admin pages I entered various strings and none of them work.
For the data source I've tried :

Data Source = ./sqlexpress
data source = server ip
data source = server ip/sqlexpress
data source = sqlexpress

as for attachdbfilename I've tried
|datadirectory|\test8_data1.mdf
full path to test8_data1.mdf
and just test8_data1.mdf

In addition to that, in order for this to work, do I need to both input the connection string on the server as well as the .RDL file I upload? I assume both settngs need to be identical for it to work.

Unfortruantely after trying all this,

"An error has occurred during report processing.
Cannot create a connection to data source 'test'.
For more information about this error navigate to the report server on the local server machine, or enable remote errors "

1) Chane hosting company :) Try CrystalTech, Webhost4life - both have great support and will always help you solve problems like that

2) You will find all info about connection strings here

http://www.connectionstrings.com/

3) What you have is database file (from sql express) - most hosting companies DO NOT support it, but they should offer some tools to copy it/attach it to full SQL server. Or you can create backup and ask them to restore it for you - after that go to website i gave you and it will work :)

|||

the irony, I use webhost4life.

I sent over 5 helpdesk tickets about what would go into datasource, and I got answers such as, you can input that in the report manager. which wasn't the question.

On my computer I have the computer name so I can easily just do servername\sqlexpress, but i've tried everythign and it won't work on their server.

As for item 3, I did use sqlexpress for my .mdf file , created a backup and restored it into webhost4life's sql server. So that isn't an issue.

|||

With Webhost4life

- login to your acc.

- go to "database" top menu

- click on "MSSQL Admin" left menu

- and you should see all your SQL databases there wit the IP and login ingo you should use to connect to it

Your connections string will look like that

connectionString="Data Source='sql332.mysite4now.com';User ID='USER_HERE';Password=PASSWORD_HERE;database='DATABASENAME_HERE'"

change sql332.mysite4now.com to your sql server

and that is it

|||

hey tom thanks very much. Still having some issues, if you don't mind I'd like to request some more advice.

1) My current status is, went into sqlreport01.mysite4now.com/reports... and created a data source and used that as a shared data source and also inputed the info for my .rdl file
i've also, tried just deleting the shared data source and used a custom datasource and my .rdl report file.

currently its listed as.

"Data Sources="Data Source='sql380.mysite4now.com';User ID=' my username ';Password=' my password ';database='bkt_data.mdf'""

on the site,

and

<DataSource Name="test">
<ConnectionProperties>
<IntegratedSecurity>true</IntegratedSecurity>
<ConnectString>Data Sources="Data Source='sql380.mysite4now.com';User ID=' my username ';Password=' my password ';database='bkt_data.mdf'";</ConnectString> <DataProvider>SQL</DataProvider>
</ConnectionProperties>
<rd:DataSourceID>df397291-cd99-460b-9468-1324b2143105</rd:DataSourceID>
</DataSource>
</DataSources>


in the .rdl file

I've tried both ways and they both don't seem to work.

bkt_data is a sql2005 database that i created from their site.

So now after trying your advice, I realized that the message

"

  • An error has occurred during report processing.
  • Cannot create a connection to data source 'test'.
  • For more information about this error navigate to the report server on the local server machine, or enable remote errors|||

    can you access your database from EM ?

    |||

    I actually don't have EM i beleive. I'm assuming that comes with sql server. I only have express edition. However like i stated, the database itself was loaded into a sqlserver database from the control panel. Do i need eM?

    |||scratchthat, microsoft has an web version of smoethign similair to em and I'm using it. It works, I can connect to the database. so then I wonder what the problem is.|||ok and what is the database name there ?|||

    now i'm not even sure what you are using database file in app_data folder ? or you uploaded db from backup ?

    if file in app_data folder read this :

    http://www.webhost4life.com/kb/question.php?qstId=153

    |||

    my db name is bkt and its the same from the tool as well as the database tab in the control panel.

    also, I restored db from backup.

    |||

    it is late :)

    anyway if your database name is "bkt" why are you using "'bkt_data.mdf'" as a database name in connection ???

    "Data Sources="Data Source='sql380.mysite4now.com';User ID=' my username ';Password=' my password ';database='bkt_data.mdf'""

    |||my apologies. My database is named bkt, but the file name that webhost4life gave it is bkt_data.mdf
    I'm gonna try it again later today and see if it works. thanks for all your help. I really appreciate it.|||

    I misread what you had wrote up there so here is the revised script in my rdl file. I noticed it automatically makes a custom data source on the report manager side.

    <ConnectString>connectionString="Data Source='sql380.mysite4now.com';User ID='user';Password='password';database='bkt'";</ConnectString>

    still does not seem to work. Is there a simple way to test if the report manager can even access sql380.mysite4now.com?

    |||Hey tom, got it to work. Thanks for all your help. I usually print out my reports with .16 margins all around, but there no setting for that here. Is that something I can input into the .rdl files?
  • Tuesday, February 14, 2012

    Connection refused, connecting to SQL server through web

    Hi,
    I'm trying to connect to an SQL server from an asp.net
    page. Both servers are in the same domain.
    The setting on the SQL server are set to accept both
    Windows and SQL users.
    The users of the webserver log in with windows
    authentication.
    First I tried to connect to the SQL server using the
    Administrator account of the web server. This was no
    succes and got the message: SQL Server does not exist or
    access denied
    After that I changed both administrator accounts to the
    same password and tried to connect. Now the connection
    was succesfull.
    But, if I try to connect from the web I still get the
    message: SQL Server does not exist or access denied.
    Does anybody have an solution for this problem?
    Greetings,
    TomNot a quick and easy answer. Very details steps are outlined here;
    Building Secure ASP.NET Applications: Authentication, Authorization, and
    Secure Communication
    http://msdn.microsoft.com/library/d...-us/dnnetsec/ht
    ml/SecNetch05.asp
    This assumes you machines are in Active Directory. If not you can follow
    this older article;
    176380 How To Use ASP with a SQL Trusted Connection with Guest Account
    http://support.microsoft.com/?id=176380
    Thanks,
    Kevin McDonnell
    Microsoft Corporation
    This posting is provided AS IS with no warranties, and confers no rights.|||Thank you,
    this really helpt.
    >--Original Message--
    >Not a quick and easy answer. Very details steps are
    outlined here;
    >Building Secure ASP.NET Applications: Authentication,
    Authorization, and
    >Secure Communication
    >http://msdn.microsoft.com/library/default.asp?
    url=/library/en-us/dnnetsec/ht
    >ml/SecNetch05.asp
    >This assumes you machines are in Active Directory. If
    not you can follow
    >this older article;
    >176380 How To Use ASP with a SQL Trusted Connection with
    Guest Account
    >http://support.microsoft.com/?id=176380
    >Thanks,
    >Kevin McDonnell
    >Microsoft Corporation
    >This posting is provided AS IS with no warranties, and
    confers no rights.
    >
    >.
    >|||You're welcome!
    Thanks,
    Kevin McDonnell
    Microsoft Corporation
    This posting is provided AS IS with no warranties, and confers no rights.

    Connection refused, connecting to SQL server through web

    Hi,
    I'm trying to connect to an SQL server from an asp.net
    page. Both servers are in the same domain.
    The setting on the SQL server are set to accept both
    Windows and SQL users.
    The users of the webserver log in with windows
    authentication.
    First I tried to connect to the SQL server using the
    Administrator account of the web server. This was no
    succes and got the message: SQL Server does not exist or
    access denied
    After that I changed both administrator accounts to the
    same password and tried to connect. Now the connection
    was succesfull.
    But, if I try to connect from the web I still get the
    message: SQL Server does not exist or access denied.
    Does anybody have an solution for this problem?
    Greetings,
    Tom
    Not a quick and easy answer. Very details steps are outlined here;
    Building Secure ASP.NET Applications: Authentication, Authorization, and
    Secure Communication
    http://msdn.microsoft.com/library/de...us/dnnetsec/ht
    ml/SecNetch05.asp
    This assumes you machines are in Active Directory. If not you can follow
    this older article;
    176380 How To Use ASP with a SQL Trusted Connection with Guest Account
    http://support.microsoft.com/?id=176380
    Thanks,
    Kevin McDonnell
    Microsoft Corporation
    This posting is provided AS IS with no warranties, and confers no rights.
    |||Thank you,
    this really helpt.
    >--Original Message--
    >Not a quick and easy answer. Very details steps are
    outlined here;
    >Building Secure ASP.NET Applications: Authentication,
    Authorization, and
    >Secure Communication
    >http://msdn.microsoft.com/library/default.asp?
    url=/library/en-us/dnnetsec/ht
    >ml/SecNetch05.asp
    >This assumes you machines are in Active Directory. If
    not you can follow
    >this older article;
    >176380 How To Use ASP with a SQL Trusted Connection with
    Guest Account
    >http://support.microsoft.com/?id=176380
    >Thanks,
    >Kevin McDonnell
    >Microsoft Corporation
    >This posting is provided AS IS with no warranties, and
    confers no rights.
    >
    >.
    >
    |||You're welcome!
    Thanks,
    Kevin McDonnell
    Microsoft Corporation
    This posting is provided AS IS with no warranties, and confers no rights.