Forum Replies Created

Viewing 15 posts - 31 through 45 (of 73 total)

  • RE: The Employment Battle

    If the Dr. was important (I think we can draw that inference) MS will have had him sign an NDA, plus a long notice clause, plus a non-compete clause.  If...

  • RE: Employee Retention

    A lot of people don't like the stress of changing jobs and possibly moving house to boot.  These are often depicted as lifers and as such they can be abandoned...

  • RE: String Manuiplation Last, First to First Last

    This kind of t-sql will work if the string is always this well formed.  But will probably need extending using regexp if there are apostrophes in names.

    declare @Name varchar(50)

    declare @newName...

  • RE: Error Msgs - SQL guff to english

    One thing you could do is return the output from SQL as XML, then the XML returned to the document can be read and any 'friendly' error messages placed in...

  • RE: Attaching the Database

    In simple terms SQL can't find the log file.  This is because the machine that did the sp_detach_db has a different internal physical file system, and the mdf contains a...

  • RE: MS. Access to SQL Server 2000

    Transferring the data can be straightforward. I usually find that transferring it to working tables in exactly the same format as the access tables and then using t-sql to...

  • RE: QOD Cheats

    Well either knowing the answer or finding it out through a source that is always available are valid ways of answering QOD.

    I just think that it would be better if...

  • RE: Question: Diff between select * & select count(*)

    No

    But I tried to do a select count(*) and select * against a big and a little table and in both cases the execution plan used an 'index scan' to...

  • RE: Find second highest

    I don't think there are any problems with @@rowcount, but I would consider using min/max to get the row you want rather than top.

  • RE: Compare table contents

    Brevity is good, how do you pronounce your name 5409045121009? Do you put the stress the second 4?

    You could use a trigger on the table that writes to an...

  • RE: Running Totals in Stored Procedures

    You are cross posting - the site owners get cross about that kind of thang.

    This is one way to create break totals and running totals without cursors or temp tables.

  • RE: Stored Procedure for running totals

    Here is a technique to calculate break totals (sum of a group) and running totals (sum of all groups to date. Perhaps you could see a different way to...

  • RE: INSERT EXEC statement cannot be nested

    It must be true because that's what it says.

    Apologies in advance because I must be being dumb, but can't you just remove 'StoredProc2' as it is only getting the output...

  • RE: Sql database to pass as XML data

    There are 3 'for xml' (explicit, raw and auto) options. The simplest of which if auto.

    A simple example would be

    create procedure usp_forxml

    (@SupplierID int)

    as

    SELECT [ProductID], [ProductName], [SupplierID] FROM [Northwind].[dbo].[Products]...

  • RE: Dynamicaly built statement

    If you are building up a sql string to execute repeated use of 'print' is your best way of debugging (but print commands should be removed before using the proc...

Viewing 15 posts - 31 through 45 (of 73 total)