Forum Replies Created

Viewing 15 posts - 10,426 through 10,440 (of 13,460 total)

  • RE: Muti table insert

    ahh ok...you know your data better than us, of course...so if you have 400 identical tables, one for each client, that makes sense.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Muti table insert

    it's fairly easy to generate a script to add a column to every table in the database.

    --company and will have a default value of FPO

    SELECT

    'ALTER TABLE ' +...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SPAM from user favourkarume11

    you can add favourodily25 to the list of spam accounts; i just re-enabled PM's from t= he forum, and got a couple from that log in.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Can anyone fix this please

    glad i could help;

    that one section of the case statements i just wasn't sure about...you obviously know your data better than anyone, it just seemed like it might be a...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Urgent - sql server 2005 express to oracle data copy

    to do this FROM SQLExpress, the table you are going to import into must already exist.

    in that case, you can add a linked server on the SQL Express to Oracle,...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Can anyone fix this please

    wow;

    your issue seems to be you haven't recognized you can get all the values in a single select statement; there was no reason(or logic) to try to get each value...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Speedup big database - MSSQL 2005

    sidenote to get a count much faster than select count(*) :

    DBCC UPDATEUSAGE (0) WITH COUNT_ROWS, NO_INFOMSGS

    SELECT OBJECT_NAME(ID) AS TableName, [Rows]

    FROM dbo.SysIndexes

    WHERE...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to create a Global Temp Table**

    from what i read here:http://www.oracle-base.com/articles/8i/TemporaryTables.php

    an oracle global temporary table seems to be the same as a regualr sql temp table...it is created for the user who connected, is not accessible...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to create a Global Temp Table**

    well first, why a global temp table if you want to select justthe stuff your user inserted? why would a private temp table not do the trick?

    but to answer your...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Stored Procedure to Clone a Table Database Object

    I've done something similar in my own stored proc; give it a test drive, I use it for some different processes for auditing and stuff; just a handy way to...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Create an 'Insert Into' statement with schema and data from existing table.. possible?

    two links in my signature for CREATE TABLE and INSERT INTO will do exactly what you want, but in TSQL vs an external process:

    sp_GetDDL takes a tablename, or optionally schema.tablename,...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: rename field on the fly

    since you need to know the values to pivot in order to pivot, you can't do it dynamically, but you can alias the values.

    but you can certainly alias them like...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: rename field on the fly

    well, the quick and easy fix would be to alias from the final select instead of using select *

    SELECT

    CODE_GESTIONNAIRE

    [20100009] As S_20100009,

    [210100010]...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL script views in order

    RBarryYoung (10/7/2009)


    The problem is that the SQL Server maintained Dependency information in SQL Server 2000 and 2005 is not itself dependable.

    i thought the dependancy issue was only (potentially) inaccurate only...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: SQL script views in order

    here's a do it yourself way.

    it just a cursor that goes thru the results of a temp table populated by the procedure sp_msdependencies

    maybe this will help:

    SET NOCOUNT...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 10,426 through 10,440 (of 13,460 total)