Tuesday, March 27, 2012
Does SQL Server 2005 Clean Up Unclosed Connections?
I have a quick question with regards to how SQL Server (2005) will treat
conncetions that are left open (due to a programmer forgetting to close
them in a .net web app).
I'm basically wondering if they'll just sit their indefinately, or will
SQL Server kill them after a period of inactivity? If it will eventually
kill them off, what is the period of time that it will wait for?
Thanks to anyone who can advise
Simon
Hi there
OK - now what will cause the network layer that the connection is no
more? The application or website being restarted?
Thanks
Simon
Tibor Karaszi wrote:
> SQL Server will kill (first rollback if necessary) the connections when the network layer had
> informed that this is no more.
>
Does SQL Server 2005 Clean Up Unclosed Connections?
I have a quick question with regards to how SQL Server (2005) will treat
conncetions that are left open (due to a programmer forgetting to close
them in a .net web app).
I'm basically wondering if they'll just sit their indefinately, or will
SQL Server kill them after a period of inactivity? If it will eventually
kill them off, what is the period of time that it will wait for?
Thanks to anyone who can advise
SimonSQL Server will kill (first rollback if necessary) the connections when the
network layer had
informed that this is no more.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Simon Harvey" <nothanks@.hotmail.com> wrote in message
news:%23k1h3RqHHHA.420@.TK2MSFTNGP02.phx.gbl...
> Hi all,
> I have a quick question with regards to how SQL Server (2005) will treat c
onncetions that are left
> open (due to a programmer forgetting to close them in a .net web app).
> I'm basically wondering if they'll just sit their indefinately, or will SQ
L Server kill them after
> a period of inactivity? If it will eventually kill them off, what is the p
eriod of time that it
> will wait for?
> Thanks to anyone who can advise
> Simon|||Hi there
OK - now what will cause the network layer that the connection is no
more? The application or website being restarted?
Thanks
Simon
Tibor Karaszi wrote:
> SQL Server will kill (first rollback if necessary) the connections when th
e network layer had
> informed that this is no more.
>|||I guess that is more a question to the networking people. But if you termina
te the application, I'd
assume that the network layer will report that the TCP session (for instance
) has been terminated.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Simon Harvey" <nothanks@.hotmail.com> wrote in message news:Or9TxGtHHHA.1784@.TK2MSFTNGP06.ph
x.gbl...[vbcol=seagreen]
> Hi there
> OK - now what will cause the network layer that the connection is no more?
The application or
> website being restarted?
> Thanks
> Simon
> Tibor Karaszi wrote:
Does SQL Server 2005 Clean Up Unclosed Connections?
I have a quick question with regards to how SQL Server (2005) will treat
conncetions that are left open (due to a programmer forgetting to close
them in a .net web app).
I'm basically wondering if they'll just sit their indefinately, or will
SQL Server kill them after a period of inactivity? If it will eventually
kill them off, what is the period of time that it will wait for?
Thanks to anyone who can advise
SimonSQL Server will kill (first rollback if necessary) the connections when the network layer had
informed that this is no more.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Simon Harvey" <nothanks@.hotmail.com> wrote in message
news:%23k1h3RqHHHA.420@.TK2MSFTNGP02.phx.gbl...
> Hi all,
> I have a quick question with regards to how SQL Server (2005) will treat conncetions that are left
> open (due to a programmer forgetting to close them in a .net web app).
> I'm basically wondering if they'll just sit their indefinately, or will SQL Server kill them after
> a period of inactivity? If it will eventually kill them off, what is the period of time that it
> will wait for?
> Thanks to anyone who can advise
> Simon|||Hi there
OK - now what will cause the network layer that the connection is no
more? The application or website being restarted?
Thanks
Simon
Tibor Karaszi wrote:
> SQL Server will kill (first rollback if necessary) the connections when the network layer had
> informed that this is no more.
>|||I guess that is more a question to the networking people. But if you terminate the application, I'd
assume that the network layer will report that the TCP session (for instance) has been terminated.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Simon Harvey" <nothanks@.hotmail.com> wrote in message news:Or9TxGtHHHA.1784@.TK2MSFTNGP06.phx.gbl...
> Hi there
> OK - now what will cause the network layer that the connection is no more? The application or
> website being restarted?
> Thanks
> Simon
> Tibor Karaszi wrote:
>> SQL Server will kill (first rollback if necessary) the connections when the network layer had
>> informed that this is no more.
Tuesday, February 14, 2012
Do you need to be a programmer to use SSIS?
Hello
I've been looking for SSIS examples where you need to import data from a OLE DB datasource and export it to a OLE DB destination source whilst the data in a colum is being transformed with a simple SQL statement.
For example:
SELECT (CONVERT(datetime, Left(Counterdatetime, 23))) datum
FROM CounterData
It seems to me that you have to use the Script Task Component ans start coding in Visual Basic.Net (or whatever)
Am I missing something here or is it normal you have to be a programmer to do simple thins like that?
Many thanks!
If i understand your question correctly, the Script Component may be overkill. You could just drag over the OLE DB Dest and Source. Between the two items in the data flow, you could use a Derrived Column transform or Data Conversion based on what the nuts and bolts of your data conversion. It looks like you just want to do a conversion by your example and you could do that in the Data Conversion transform.
-- Brian
|||Worf wrote:
Hello
I've been looking for SSIS examples where you need to import data from a OLE DB datasource and export it to a OLE DB destination source whilst the data in a colum is being transformed with a simple SQL statement.
For example:
SELECT (CONVERT(datetime, Left(Counterdatetime, 23))) datum
FROM CounterDataIt seems to me that you have to use the Script Task Component ans start coding in Visual Basic.Net (or whatever)
Am I missing something here or is it normal you have to be a programmer to do simple thins like that?
Many thanks!
Absolutely not. You have already done the required transformation in your SQL statement above. If you can do your required transforms in the source then invariably that is what you should do - there's no point in having unnecassary transformations in your data-flow. If you wanted to carry out those same transformations in the data-flow then you would require a Data Conversion component (or possibly the Derived Column component) and there is no "programming" (in the common sense of the word) involved in using those.
-Jamie
|||Good call Jaimie.