Forum Replies Created

Viewing 15 posts - 2,596 through 2,610 (of 3,232 total)

  • RE: is possible to do a dynamic query to a var table or temporal table ??

    What you are seeing has to do with the scope of your table variable.  This will work for sure if you use a global temporary table (##tempTable). 

  • RE: Text Field

    When you say that inserting the ASCII code for a CR doesn't work, what do you mean.  How are you going about verifying that it doesn't work?

  • RE: Convert number without rounding

    declare @decimal decimal(18,10)

    set @decimal = 1.7325000000

    SELECT SUBSTRING(CAST(@decimal as varchar),1,(CHARINDEX('.',@decimal) + 3)) AS NewUnit

  • RE: Named Instance Problem

    Did you get a backup of your registry prior to deleting keys?  I would suggest restoring your registry to its previous state and attempt to re-install again.  What kind of...

  • RE: INDEX question SQL Server 2000

    Query SysIndexes (look in BOL for the columns that you want to display).  Join SysIndexes to SysObjects for Table names.  I am not in a place where I have access...

  • RE: how do I execute a DTS package in a trigger?

    What happens if the 400 is down or there are network problems between the SQL box and the 400?  The INSERT transaction will be held open while the DTS package...

  • RE: how do I execute a DTS package in a trigger?

    I'm not sure if it is possible, but if it is, why would you want to hold a transaction open while a DTS package runs?  What are you trying to...

  • RE: Setting values in stored procedure

    declare @count int,

     @sql nvarchar(1000),

     @tablename varchar(100)

     

    set @count = 0

    set @tablename = 'person.contact'

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

    exec sp_executesql @sql,N'@count int OUTPUT',@count = @count OUTPUT

    select @count

  • RE: Setting values in stored procedure

    You cannot use a variable in the FROM clause in a DML statement.  You will need to write the SELECT COUNT(*) FROM @StrucCount as Dynamic SQL also. 

  • RE: Setting values in stored procedure

    You cannot reference a table name stored within a variable without using Dynamic SQL. From the error that you've posted, it appears that you are using dynamic SQL and you may have...

  • RE: Can''''t reattach db. How can I delete it through the back door ?

    If your database is not attached to an instance, you can just delete the physical files through Windows Explorer. 

  • RE: DBA Certification

    Thanks for agreeing Jeff, I was starting to feel a little lonely out here.  Folks, when seeking new employment keep in mind that you have something to offer to the...

  • RE: constraint: enforce unique key on subset of rows

    Rick,

    What Sergiy was getting at is that what you want to do is a poor use of a RDMS.  Your main purpose here it to prevent duplicate Client_ID and Code_ID...

  • RE: DBA Certification

    So if you are currently a DBA and working exclusively on SQL Server platforms, what are you supposed to call yourself? If they feel that it is misleading, then they have...

  • RE: Insufficient disk space in filegroup ''''PRIMARY''''

    Check the following:

    1. Total and Available disk space where your MDF and LDF reside.  Also check file system type.

    2. Autogrow file property on both the data and log file for...

Viewing 15 posts - 2,596 through 2,610 (of 3,232 total)