Forum Replies Created

Viewing 15 posts - 12,151 through 12,165 (of 13,469 total)

  • RE: Dynamic SQL into a temp table

    I would have changed the process to get the data myself. your proc is what my boss calls "putting wings and wheels on a horse"...that is, using one procedure to...

  • RE: How to Dynamically Updating Tables in the procedure...?

    if the tablename is a parameter, then you must use dynamic sql.

    here's an example:

    --for users who are too lazy to type "SELECT * FROM"

    CREATE procedure sp_show...

  • RE: Query to find data over range of years

    since YEAR() function returns an integer, you could use where Year() > 2003 instead:

    select distinct CustNumber

    from dbo.InvoicesView

    where CustNumber in

    ( select distinct CustNumber

    from dbo.InvoicesView

    ...

  • RE: Create 'Vanilla Database'

    ok here's a script that creates the statements to delete or truncate where appropriate, and creates the statements in Foreign Key Hierarchy Order.

    now remember there are always tables you...

  • RE: Selecting rows from 2 Tables

    try this and look at the results:

    SELECT *

    FROM GRADSTUDENTS G

    FULL OUTER JOIN TA T ON G.LOGINID = T.LOGINID

    --WHERE G.LOGINID IS NULL

    --WHERE T.LOGINID IS NULL

    the first rows in...

  • RE: Cannot connect to SQL Server Express using a connection string

    it has to do with mix mode being allowed or not. on express, it's turned off by default, but usually on for production servers.

    1) Open up SQL Server Management Studio...

  • RE: Selecting rows from 2 Tables

    when you get a problem where it say find data that is NOT [whatever]

    you typically need to use a LEFT OUTER JOIN, instead of an INNER JOIN

    the word "join" in...

  • RE: Convert RTF data

    I'm just guessing, but it might be the size of the variable being passed; I'm also assuming your not using the fnParseRTF, since that doesnt need CLR or OLE.

    add this...

  • RE: Find Table an Column name

    it might be that all your objects are not owned by dbo.

    you might have tables that need to be referenced by mike.tablename or webdev.tablename, for example .... instead of just...

  • RE: Find Table an Column name

    Similar to what someone else posted, this procedure "UGLYSEARCH" is not for use on a production box...if you have a database with 50K columns that are varchar, etc, this is...

  • RE: sp_executesql hangs for a particular stored procedure

    sp_executesql is probably being used after building a dynamic sql string...

    the inherent problem with that is you could execute a command which makes data changes, but makes so many changes...

  • RE: view related tables

    you could try the stored proc sp_fkeys [tablename]

    that will list all the tables that reference any column in the selected table via a foreign key reference...

    if you ment a GUI...

  • RE: Change Data in acolumn to Name Case

    doesn't matter which version of SQL; the script at that link is 2000/2005 compatible.

    download the script form the link I posted...it's basically CREATE FUNCTION ProperCase AS....

    open SQL Query Analyzer,...

  • RE: Moving to a new Server in a SAN Environment.

    well let me be more detailed: only one server can use the actual .mdb and ldb files at any one time. restored databases were just copies of hte current data.

    1.first...

  • RE: Moving to a new Server in a SAN Environment.

    no problems at all; we had both servers up and running at the same time for a week; the databases we detatched and reattched were developer databases, so they had...

Viewing 15 posts - 12,151 through 12,165 (of 13,469 total)