Forum Replies Created

Viewing 15 posts - 316 through 330 (of 433 total)

  • RE: How to find current activity through query analyzer?

    There's a customised version of sp_who2 here:

    http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=1144



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: calling stored proc in my vb program

    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...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: XML with a Table column

    You could build the customerID in to the XML document. You can then return this in your OpenXML statement.

    CREATE

    TABLE #xml



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Copying a file from a webserver to local disk

    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...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Testing connection to DSN

    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 =...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: How to import data from sql server 2000 to excel sheet through a stored procedure. Need to make the script so that it will reun every half an hour

    Take a look at BCP in Sql Server Books Online. The answer you need is there.



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Copying a file from a webserver to local disk

    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...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: Notification email link to jump to last page?

    Thanks. I think it might be me just being lazy!



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: How to show result for count=0 in single query

    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...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: How to show result for count=0 in single query

    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...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: How to show result for count=0 in single query

    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.



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: How to show result for count=0 in single query

    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. 



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: SQL 2000: How do I put a global variable into a SQL Task statement?

    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.



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: SQL 2000: How do I put a global variable into a SQL Task statement?

    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)...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • RE: SQL 2000: How do I put a global variable into a SQL Task statement?

    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...



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

Viewing 15 posts - 316 through 330 (of 433 total)