Forum Replies Created

Viewing 15 posts - 9,481 through 9,495 (of 15,381 total)

  • RE: Querying multiple tables

    It seems you are new around here. Welcome!!! In order to provide help we need to have enough details. That means we need ddl, sample data and desired output based...

  • RE: insert stored procedure results into dynamic table

    Chrissy321 (1/29/2013)


    Hello All,

    Can I insert the results of a stored procedure into a dynamic table?

    I am looking for the equivalent functionality of SELECT...INTO but with the data being returned from...

  • RE: How to find the tables to join ?

    salmita (1/29/2013)


    I wanna display the names of the customers along with the product names that they have purchased !!

    So what table(s) do you think you might need for this?

  • RE: query help

    I gave you a basic syntax. Given the lack of details that is the best I can do. All you need to do is figure out what the query is...

  • RE: query help

    Incredibly sparse on details. You just need to create your update statement.

    Something like this.

    update alias

    set Col = slt.val

    from linkserver.database.schema.table alias

    join SomeLocalTable slt on slt.ID = alias.ID

  • RE: @@CONNECTIONS AS 'Login Attempts'

    rockandhra.net (1/29/2013)


    SELECT GETDATE() AS 'Today''s Date and Time',

    @@CONNECTIONS AS 'Login Attempts'

    shows

    72624361

    How accurate is this data? Is it really SQL Server login (success/failure) attempts

    I use sql-server connected through ADO.NET only(99%)

    1. direct...

  • RE: Insert and Select Statement

    monilps (1/29/2013)


    Hi,

    I want to generate script that will have insert statement and select statement for each table in a database.

    For Example:

    insert into tableA (idA, columnA)

    select idA, columnA from tableA

    insert into...

  • RE: How to find the tables to join ?

    salmita (1/29/2013)


    Hello,

    I am beginner in T-SQL.

    I need to find the tables to the join between the table "Product" table and the "Customer" of the database AdventureWorks2012.

    Any idea ?

    Thank you.

    Customers...

  • RE: Trigger After Update - Values from inserted table

    Glad it is working for you.

    The point in time thing is good for a single column but can be a real pita to show what the entire table looked...

  • RE: regular expression format supported by that CLR

    What have you tried so far?

  • RE: Error using If Logic to create specific version of a table.

    The parser doesn't care about logical processing. It sees the same create temp table and throws up its hands. Maybe you can change your logic a little bit to avoid...

  • RE: Table with one row: Bad idea or not?

    L' Eomot Inversé (1/29/2013)


    Sean Lange (1/29/2013)


    It seems that today's QOTD fits in nicely with this discussion. A very simple method was presented there using a constraint to allow a table...

  • RE: Looking for an aggregate function but can't get it quite right.

    Please read and follow the instructions found by reading the article in my signature about best practices. Nobody can help because we don't have ddl, sample data, desired output.

  • RE: on delete trigger

    Or you could use and INSTEAD OF trigger and not have to worry about the transaction.

    CREATE TRIGGER dbo.tr_test_D

    ON dbo.test

    INSTEAD OF DELETE

    AS

    BEGIN

    ...

  • RE: Table with one row: Bad idea or not?

    It seems that today's QOTD fits in nicely with this discussion. A very simple method was presented there using a constraint to allow a table to have only 1 row.

    CREATE...

Viewing 15 posts - 9,481 through 9,495 (of 15,381 total)