Forum Replies Created

Viewing 15 posts - 1,441 through 1,455 (of 2,038 total)

  • RE: Loading XML into a relational table

    Hi

    I agree with Lutz. An XML file does not contain enough information to create tables from. You may need an XSD for this. As you say you are currently experimenting...

  • RE: Difrrence between two rows

    mister.magoo (4/11/2009)


    Borrowing a bit from Flo...

    Always welcome! That's the reason for sample data! 🙂

    DECLARE @t TABLE (Name VARCHAR(30), Reading INT, Result INT)

    INSERT INTO @t

    ...

  • RE: T-SQL 2005 Help

    I remember a case my apprentice told me from one of his teachers, the "IF-loop". Sure a slip of the tongue, but anyway:

    DECLARE @i INT

    SET @i = 1

    START:

    PRINT 'Hello'

    SET @i...

  • RE: Difrrence between two rows

    Kavin (4/11/2009)


    Yes I can also think the different ways of approaching a problem. As I am new to SQL I hope this website will teach me a lot and correct...

  • RE: getting logical drives from server

    You're welcome. I only did the start-up, Barry found the solution!

    I just came back from shopping and intended to start the .Net Reflector to play Sherlock Holmes... So I put...

  • RE: How to make this stored procedure flexible?

    Hi

    Try to handle it with a PIVOT operator.

    Greets

    Flo

    PS: Maybe have a look to the "Best Practices" link in my signature for posting sample data and DDL. This always increases the...

  • RE: Difrrence between two rows

    Hi

    And a completely set based solution:

    DECLARE @t TABLE (Name VARCHAR(30), Reading INT, Result INT)

    INSERT INTO @t

    SELECT 'UNDRI',...

  • RE: Data Model of BPM applications

    Hi

    Sure you don't know all possible objects (forms) to be created but maybe there are many common business processes as "Claim", "Order", "OrderPosition", "Shipment", "Physical Unit", "Contract", "Partner", "Customer", "Contact",...

  • RE: getting logical drives from server

    Hi Pez

    If you just need the available drives try this:

    using System;

    using System.Collections.Generic;

    using System.Data;

    //using System.Data.SqlClient;

    //using System.IO;

    using System.Linq;

    using System.Text;

    //using System.Net;

    using Microsoft.SqlServer.Management.Smo;

    using Microsoft.SqlServer.Management.Common;

    namespace ConsoleApplication1

    {

    class Program

    {

    ...

  • RE: Updating TEXT data type field

    Hi

    In SQL Server 2000 I think there is no set based solution. You have to work with WRITETEXT function:

    CREATE TABLE #t (Id INT, Txt TEXT)

    INSERT INTO #t

    ...

  • RE: T-SQL 2005 Help

    Shane Redding (4/10/2009)


    Why not try GOTO Step#. You can find it on BOL. I had to write something recently and it worked like a charm.

    Hi

    The GOTO should always be one...

  • RE: Data Model of BPM applications

    Hi

    An EAV database structure is by design a performance issue.

    Maybe you can design a hybrid solution. You create tables for all (or most) possible objects which have to be represented...

  • RE: how to increment id value in store procedure if id is primary key

    Hi jignesh

    If you use an IDENTITY column it will be incremented automatically and you can get the value with SCOPE_IDENTITY() function. If you don't have an IDENTITY column use a...

  • RE: Remote Connection Windows Authentication Error

    Stupid question:

    Is the user account configured in SQL Server as login and as user for the database?

    Did you try to connect locally with the windows account?

    Greets

    Flo

Viewing 15 posts - 1,441 through 1,455 (of 2,038 total)