Forum Replies Created

Viewing 15 posts - 91 through 105 (of 126 total)

  • RE: HELP while connecting to a remote SQL Server

    I agree with MarkusB that either the user login doesn't exist in the SQL server or the Password is incorrect.

    Your posting contains secure information that you should never post on a...

  • RE: how to get my DTS package to return an error message?

    I'm not familiar with ColdFusion so I can't help you with the code needed to process the failure but, to make a package fail on error you need to modify...

  • RE: Visual Basic ERROR - [Connection Open(Connect(),} SQL Server does not exist or access denied

    The error tells you that a connection with your SQL Server could not be established, this could be because the credentials supplied (Hostname, port, instance name etc) are not valid,...

  • RE: Varchar Aggregate?

    I recently responded to a similar need and this worked for them.  See if this concept applies for you... Transforming table rows to columns

    Basically you're looking...

  • RE: test to see if the SQL server is online?

    here is a sample connection that I use with VB.  Set the connection timeout to 30 (lower values still take 30 seconds, part of the MDAC I assume)

    Dim oConn As...

  • RE: test to see if the SQL server is online?

    Execute the connection method / function of your remote program...  (I am making the assumption that you are the programer), set your connection timeout low, if the connection succeeds then the...

  • RE: Server Roles and Database Access

    I don't know of a function to give you what you are looking for that already exists in SQL Server (not that it doen't exist, i just don't know about...

  • RE: Multi-database project

    I'm not aware of any performance gains regarding the database that a procedure is stored in (not there isn't I just don't know of any).

    There is no reason to create...

  • RE: Twist on difficulty with name parsing....

    You can use the function I wrote to parse the name (get it here: UDF: Parse a delimited list of paramters )

    Then your statement should look like this:

    select (select...

  • RE: need help with dynamic SQL

    it's the extra And "+ ''' AND and [Platform] = ''PDA''' "

    change it to + ''' and [Platform] = ''PDA'''

    also is PDA always the filter if not do this:

    CREATE...

  • RE: Where clause with variable

    There appears to be problem with the actual data stored in the variable @date.  I ran the below statement and it works just fine...

    Can you post the results of "Select...

  • RE: building select list from a subquery.

    Andy,

    Don't be sorry, this is what makes forums great.  A user posts a question hoping to get the answer to solve some major problem he/she is having.  Other users post...

  • RE: building select list from a subquery.

    Try this:

    -----------------------------------------------------

    --      GET TABLE COLUMN NAMES FOR INSERT         --

    -----------------------------------------------------

    DECLARE @tblColumnString TABLE(iRowId INT IDENTITY(1,1),vcColumnName VARCHAR(255))

    DECLARE @i INT

    DECLARE @iFirstColumn INT

    DECLARE @vcColumnString VARCHAR(8000)

    DECLARE @vcColumnName VARCHAR(255)

    DECLARE @vcExecSQL VARCHAR(8000)

    INSERT INTO @tblColumnString Select name from...

  • RE: Grouping with formula

    You're looking for a Pivot function...  for SQL 2000 there are alot of posts here, do a search for Pivot script on this site... same for SQL 2005 which has...

  • RE: changing design of table to n-n

    without redesigning your db structure to 3nf I would change the product_id and product_ref_id to binary values, it will allow you do bitwise comparisons:

    Your product_ids will be:

    0x0000  Clothes

    0x0001  Pants

    0x0002  Shirts

    0x0004 ...

Viewing 15 posts - 91 through 105 (of 126 total)