Forum Replies Created

Viewing 15 posts - 2,641 through 2,655 (of 3,543 total)

  • RE: Error in asp page

    Check the contents of TargetEmployers_staff to make sure it contains a value and that it is valid.

  • RE: Error in asp page

    You have incorrect code between TargetEmployers_staff and TargetOther

    it should be

    TargetEmployers_staff & "', '" & TargetOther

    I think you have quotes around all your data including bit fields. I suggest you use a...

  • RE: Error in asp page

    Can you post the asp code that creates the sql string

  • RE: Error in asp page

    The error indicates that you are using execite on a connection object and have a malformed query (possibly a missing quote). As above can you post the asp code that...

  • RE: Inserting a record count using Dynamic SQL

    quotealternative method for placing the record count from a table into a variable

    DECLARE @sql nvarchar(100),@Reccount int

    SET @sql...

  • RE: Help With Complex Query

    CREATE PROCEDURE yourprocedurename

    @GlYear int,

    @GlPeriod int,

    @stockcodefrom char(4),

    @stockcodeto char(4)

    AS

    select stockcode,

    [current year sales],

    [Last year sales],

    [current year last 3 months sales],

    [last years last 3...

  • RE: How solve it??

    Try

    declare @sql nvarchar(100)

    set @sql = 'select @count = count(*) from ' +

    @tableName + ' where ' + @colName + ' = ' + CAST(@recordID as varchar)

    exec sp_executesql...

  • RE: Question of the Day for 20 May 2004

    Well spotted jarney.

    I used what was on the posted question when I answered but took details from the above posts when I answered this...

  • RE: Question of the Day for 20 May 2004

    SETUSER work differently on SQL7 and SQL2K.

    SQL7 changes both

    SQL2K changes only user_name()

  • RE: Help With Complex Query

    DECLARE @GlYear int, @GlPeriod int

    SET @GlYear = 2005

    SET @GlPeriod = 1

    select stockcode,

    sum(case when GlYear = @GlYear AND GlPeriod = @GlPeriod

     then netsalesvalue else 0 end) as...

  • RE: Dumb SQL question....

    SELECT su.sysuser_id, su.sysuser_firstname, su.sysuser_lastname

      FROM sysuser su

      LEFT OUTER JOIN sysuser_sysusergroup sug

        ON sug.sysuser_id = su.sysuser_id

        AND sug.sysusergroup_id = '1'

    WHERE sug.sysuser_id IS NULL

    ORDER BY su.sysuser_lastname, su.sysuser_firstname

    or

    SELECT su.sysuser_id, su.sysuser_firstname, su.sysuser_lastname

      FROM...

  • RE: Andy, where are you?

    Nice article Andy and congrats. Nice to hear from you.

    I personally I'm a developer and will stay that way, have done team leading, supervision and such, and was crap at...

  • RE: Snap-in Failed to Initialize??

    Quote from Micorosft

    You do not need to configure any licensing options when installing the SQL Server 2000 tools only. However, when using the tools to connect to SQL Server, you...

  • RE: Question of the Day for 12 May 2004

    All that testosterone. Hey, what a great way to stir up trouble

    I agree with you Antares, I always considered it a system table....

  • RE: Snap-in Failed to Initialize??

    If you want administer sql from the PC, install the client tools on that PC. This will set details in the registry and install the snap-in required.

Viewing 15 posts - 2,641 through 2,655 (of 3,543 total)