Forum Replies Created

Viewing 15 posts - 2,461 through 2,475 (of 13,460 total)

  • RE: Identifying Current Record

    don't try to do it in the table. create a view or query that uses row_number() OVER (Partition by...order by..)

    if you try and do it in the table itself, you...

    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: database is slow

    well I'd say go with rebuilding all your statistics as well first,a dn then start looking at specific slow performing queries,a dn whether you can either get indexes in place...

    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: Database and its Objects Naming Standards

    well, i'll throw my two cents in, and you can evaluate them for yourself

    i can only tell you my experiences and the way we do things at my shop; you...

    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: make a full script of a database using query

    If you need the schema and the data, the "number 1 doctor recommended " way todo that is via backup and restore;

    it's flawless, and is either pass or fail; you...

    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: What's the best way to create/maintain a test database in development from Production?

    it depends on whether the developers are allowed to do DDL changes, and how often those changes need to be re-applied when you refresh.

    with regular restores, the develoepr changes get...

    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: Determine doctype of raw binnary data

    in a similar post a couple of years ago, i did a TSQL example that looked at the first x bytes and compared them to known values to find gif/jpg/bmp/png...

    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 100GB database with dummy data...

    i don't think you really need the database at all.

    I'd create a job script for the client, nad ask the client to add a job or two , that runs...

    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 100GB database with dummy data...

    quackhandle1975 (3/4/2014)


    Hi,

    I am looking to perform some DBCC CHECKDB tests and for many reasons, I cannot copy a use a copy of current prod database, but the best I can...

    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: Cannot open the datafile - inconsistent

    is it possible tha that the file being read is still being written by some other process , and you are accidentally grabbing it mid-stream? i know i had an...

    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: Compile lock problems on a specific SP

    also, if your table variable has more than a few hundred rows, switching it to a temp table allows SQL to use automatically created statistics on that table in order...

    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: Compile lock problems on a specific SP

    i believe it's bad syntax, which can result in an accidental cross join.

    you are updating a table variable, but it is ALIASED elsewhere; because it is not explicitly named, there's...

    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 Server 2012: Passing through a user context on a connection.

    there's a session-level value named CONTEXT_INFO you could set, but you would have to modify your application to set it and use it;

    here's an example or two:

    DECLARE @var VARBINARY(128)

    SET @var...

    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: I want to check the existence of file on ftp when ever any one runs the stored proc

    TSQL pretty much limits you to looking inside databases. For anything outside of a database , in your case FTP and files, i think i'd create an outside process 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: Script to list all tables and columns involved in Stored Procedure

    to go that deep, you'd need to execute the procedure, capture the execution plan, and parse the xml out to get it down to the column level;

    the queries in the...

    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: Script to list all tables and columns involved in Stored Procedure

    pretea (2/28/2014)


    Thanks, this works on 2008 R2 but I need for 2005 and functionality

    sys.sql_expression_dependencies does not exist on 2005, what do you suggest?

    nope.

    in 2005, i believe only actual objects that...

    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 - 2,461 through 2,475 (of 13,460 total)