Forum Replies Created

Viewing 15 posts - 1,891 through 1,905 (of 3,233 total)

  • RE: Incorrect syntax near 'CHAR'

    I assume that the @FieldName variable contains a column name that you want use in your where clause? You need to use dynamic SQL if that is the case....

  • RE: Insert into table question

    Yep, you're correct Matt. My bad....cut and paste error:Whistling: .

  • RE: Great number of Stored Procs, or just client queries?

    I mean, does wrapping every possible query an application may use into a stored procedure create a serious overhead on the server?

    It is actually the opposite. As Adam...

  • RE: Query design......

    It looks like you may have some issues with your table design as well. First off, any time you run a LIKE comparison using the wildcard for the first...

  • RE: Insert into table question

    This should work for you.....

    drop MyNewTable

    SELECT IDENTITY(int,1,1) as RowID, t.*

    INTO MyNewTable t

    FROM top (10)........

    If this is in a stored proceudre, I would suggest that you explicitly define the table and...

  • RE: query question

    OK, I think I've almost got it. There's still some missing pieces though. You shown us the result set that you are after, but we need to know...

  • RE: query question

    Nick,

    Just so we're all clear and on the same page, can you post some sample data and give an example of the result set that you would like to...

  • RE: IF NOT EXISTS. One table or two?

    Is there a unique index on tbl_Clients_ClientBasicInformation.ClientNumber ? If not, you are leaving yourself with the possibility that your initial SELECT returning multiple rows and your UPDATE not working...

  • RE: Joins and grouping

    David,

    It sounds like you want all of the rows, but you only want to display the location for the first location value in each group. Is this correct?...

  • RE: Relationship cascade delete question

    You could create a foreign key constraint between the two tables and enable the delete cascade. As a best practice, I would not recommned going down this route. ...

  • RE: SQL Server 2000, create index on table datatype?

    You cannot use the CREATE INDEX syntax with a table variable. For this reason, it is recommended that you use temporary tables (created with the CREATE TABLE # syntax)...

  • RE: Self-Blocking on one database

    Self blocking usually means that the process is waiting is waiting on hardward resources that are currently in use by that process. This usually happens when the process is...

  • RE: Web Developer's stored procedure

    Loner,

    I would suggest that you should spend some time creating database coding standards that contain best practices and hard-fast rules on how to write effective and efficient database code....

  • RE: what type of locks will be used for this?

    If you are adding a column with a default value, SQL Server has to update the physical data pages with that value. In order to do that, it will...

  • RE: How to recover a user database from disk failure without restarting SQL Service?

    Yes. All you'll need to do is attach the DB to the instance. You do not need to restart the service. You can do this through the...

Viewing 15 posts - 1,891 through 1,905 (of 3,233 total)