Forum Replies Created

Viewing 15 posts - 1,111 through 1,125 (of 1,131 total)

  • RE: Stored Proc vs Query

    Are you aware of stored procedure "parameter sniffing" ?  That is, when the stored procedure is first invoked, the query plan is created based on the values of the passed...

    SQL = Scarcely Qualifies as a Language

  • RE: a tale of two tables ...

    In the future, please post create table statements including all primary key and foreign key constraints such as:

    Create table Customer

     (ID integer not null

     , DateCreated datetime not null

    , CurrentStatus varchar(40) not...

    SQL = Scarcely Qualifies as a Language

  • RE: Exporting a relationship diagram

    Since the diagrams are saved in table dtproperties in each database, you could copy the data from one database to another.  Here is an example which has been tested:

    set identity_insert <targetdb>.dbo.dtproperties...

    SQL = Scarcely Qualifies as a Language

  • RE: Obtaining error message information in alerts and jobs

    Look in Books OnLine for sp_add_jobstep where the specifaction for the @command can include one or more of the case-sensitive tokens which are replaced at run time.  These token are not...

    SQL = Scarcely Qualifies as a Language

  • RE: Returning a record for each day in a range

    Try creating a table (named "sequences"&nbsp with all numbers between 0 and 32767 as detailed below.

    Your actual query can then reference this "sequences" table such...

    SQL = Scarcely Qualifies as a Language

  • RE: Scripting Linked Server Logins and Passwords

    This is untested, but since you have already hacked the system tables, try this:

    In sp_addlogins, there is a section of code:

    if @encryptopt = 'skip_encryption_old'

    begin

     select @xstatus = @xstatus | 0x800, -- old-style...

    SQL = Scarcely Qualifies as a Language

  • RE: Connection Issues

    <so the GUI  is my crutch! >

    Yes, it gets quite complicated using T-SQL but being unable to reproduce your actions...

    SQL = Scarcely Qualifies as a Language

  • RE: Connection Issues

    1.  Are you getting this error ?

    Server: Msg 18452, Level 14, State 1, Line 1

    Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.

    SQL = Scarcely Qualifies as a Language

  • RE: Importing Word documents into SQL Server 7.0

    For SQL Server 7.0, the samples (which are an option when installing) has the TEXTCOPY.exe  From Books On Line:

    TextCopy is a Microsoft Foundation Class (MFC) C++ example that illustrates...

    SQL = Scarcely Qualifies as a Language

  • RE: How to get available memory using SQL

    exec master.dbo.xp_msver 'PhysicalMemory'

     

     

    SQL = Scarcely Qualifies as a Language

  • RE: Update Rate perfomance

    Please be sure to post the DDL for 1 of the tables & its indexes, along with a sample SQL update statement.  Does the table have a unique clustered index...

    SQL = Scarcely Qualifies as a Language

  • RE: SQLIOStress - Anyone used it / read it?

    Regarding the differences between the same query having major differences in response times on different servers, this could be a problem with the physical database such as out of date...

    SQL = Scarcely Qualifies as a Language

  • RE: SQLIOStress - Anyone used it / read it?

    I have used SQLIOStress many times to prove hardware configuration problems.  What specifically to you want to know ?

    Regarding "Same or near similar spec drives etc and some are just...

    SQL = Scarcely Qualifies as a Language

  • RE: Need Help With this SQL...

    Having a single column containing two pieces of information (the value and the sequence within the value)  is a violation of the rules of normalizatoim...

    SQL = Scarcely Qualifies as a Language

  • RE: Preventing a SP from halting on error

    Take a look at Erland Sommarskog's home page where he has 2 exhaustive article on error handling.

    http://www.sommarskog.se/

    SQL = Scarcely Qualifies as a Language

Viewing 15 posts - 1,111 through 1,125 (of 1,131 total)