Forum Replies Created

Viewing 15 posts - 16 through 30 (of 33 total)

  • RE: Stripping HTML tags from SQL Table

    Do you have to store the HTML tags in the first place would be my question???

    I had a similar problem, but I used regular expressions in the frontend to strip...

  • RE: help in fine tunning this query which is taking long time

    No ... not your end .... Same here, too!!!

  • RE: Weird error, probably easy

    IF  (expression)

    BEGIN

     BEGIN TRANSACTION

     ... some code ...

     COMMIT TRANSACTION

    END

    ELSE

    BEGIN

     BEGIN TRANSACTION

     ... some code ...

     COMMIT TRANSACTION

    END

    this help???

  • RE: Ripping a date apart

    retreiving dateparts:

    SELECT DATEPART (month, getdate())   -- you can use day or year accordingly where needed

    The above post will give you a datestring. To get this into s datetime variable use:

    SELECT CONVERT(datetime,...

  • RE: Query from 2 different servers (SS 7.0 and SS 2k)

    If you use linkservers (enabling you to use the long prefix syntax server.db.owner.table) then make sure they both have the same sorting options, otherwise you may get an error when...

  • RE: Stored Procedures dont come across in DTS

    Hi Frank

    If you are using Enterprise Manager, then you can generate the Creation Scripts for the Stored Procedures. This script can then be carried out on the new server and...

  • RE: Link Server Problem from SQL 7 to SQL 2000

    Hi Elias

    Have you ever let the procedure come to an end??? I had a similar problem lining SQL7 & SQL2000 - A Query that was executed locally with a replica...

  • RE: Stored Procedures under .net

    Hi there...

    We are using .NET (VB .NET) frontend applications to analyse Data from SQLServer 2000. We use stored procedures where we can.

    First of all, when using stored procedures through the Command...

  • RE: Date Problem in Query

    You can write a function upfront in VB .NET. There you can get the date and split it into day, month, year (See Documentation VB .NET for Date manipulation) and rebuild...

  • RE: stored procedure with Dynamic sql

    Why the dynamic SQL???

    Why not just use the Statement as is? Why build it dynamically in this case?

    SELECT * FROM ggg_emp 

    WHERE CONVERT(varchar(10),date_join,101)

    BETWEEN CONVERT(varchar(10),@start_date-1,101)

    AND CONVERT(varchar(10),@end_Date+1,101)

    just a thought...

  • RE: Need help Totaling rows and columns

    If you Select the above statement into a temp table, you can then use the following Statement on the temptable (changing the names respectively of course!) - I named my...

  • RE: Question of the Day for 15 Jul 2004

    Here we go again...

    I thought this site is about people helping each other out with practical advice????

    Has this changed???

    Trick question's are okay - but this one wasn't even a...

  • RE: convert char to datetime

    How about

    SELECT CONVERT(datetime,'10/10/2003',103)

     

    where 103 refers to the format of the date you recieve, can be substituted with a different number if you need a different format ... See BOL...

  • RE: A little SQL help, please?

    Using the same table as in the above post ... How about the following?

    INSERT INTO #TABLE_REPORTS

    SELECT  user_id,  'report_a',  'first month report'

    FROM #TABLE_REPORTS

    WHERE user_id NOT IN

     (SELECT user_id

      FROM...

  • RE: Question of the Day for 09 Jul 2004

    Quote:"If you are a creationist then the chicken.  If you are a Darwinian then the egg.

    I'll play devils advocate and say that the trick questions are more relevant because it...

Viewing 15 posts - 16 through 30 (of 33 total)