Viewing 15 posts - 316 through 330 (of 433 total)
There's a customised version of sp_who2 here:
http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=1144
April 25, 2007 at 4:56 am
I suppose it depends how your VB program connects to SQL Server. If the program does not create a new connection when executing the procedures, it will have hold of...
April 25, 2007 at 4:55 am
You could build the customerID in to the XML document. You can then return this in your OpenXML statement.
CREATE
TABLE #xml
April 25, 2007 at 2:37 am
You would have to pass the web address as a global variable, named gv_WebAddress for example, and change the line:
objSvrHTTP.open "GET", "http://www.exodus.co.uk/xml/aaa.xml", false
TO
objSvrHTTP.open "GET", DTSGlobalVariables("gv_WebAddress").Value , false
This should do the...
April 25, 2007 at 2:15 am
You could use an ActiveX script to try to connect to the DSN. You can then have OnSuccess and OnFailure workflows from it.
Something like:
Function Main()
Dim conn
Dim connStr
Dim userID, pWord
userID =...
April 24, 2007 at 6:18 am
Take a look at BCP in Sql Server Books Online. The answer you need is there.
April 24, 2007 at 6:02 am
Hi Phil,
I use ActiveX scripts within DTS packages to download files from HTTP sites. If this is necessary as part of a procedure, I execute the package using EXEC...
April 24, 2007 at 5:41 am
Thanks. I think it might be me just being lazy!
April 23, 2007 at 9:31 am
You would have to have a lookup table of ALL of the values possible. You could create this on the fly in your SQL statement if it is necessary. Using...
April 23, 2007 at 9:23 am
Why do you have to use the GROUP BY? I would understand the use if your query looked like:
SELECT col1, COUNT(col2)
FROM table
WHERE col1 = @var1
GROUP BY col1
It is very hard...
April 23, 2007 at 9:01 am
Can you give some info with regards to the real-life problem that you are trying to address?
There are some confusing aspects to your query.
April 23, 2007 at 8:50 am
If you remove the GROUP BY clause you will get a count of 0. As there are no groups (customerIDs) that match the where clause no rows are returned.
April 23, 2007 at 8:43 am
No probs. It just struck me, there's a good explanation of parameters at http://www.sqldts.com/234.aspx, a site that has been (and continues to be) very useful.
April 23, 2007 at 6:29 am
The Parameters button is one of the available buttons in the Execute Sql Task Properties dialog. Here you can map both input and output parameters.
Check out BOL for a (maybe)...
April 23, 2007 at 6:15 am
It works on the principle of first in, first out. When you click on the Parameters button and assign the variables, the first ? will map to Parameter 1, the...
April 23, 2007 at 5:49 am
Viewing 15 posts - 316 through 330 (of 433 total)