Forum Replies Created

Viewing 15 posts - 11,626 through 11,640 (of 13,460 total)

  • RE: IT BUDGET

    I'd take a wild guess and say: add up the value of all your machines, servers and printers.

    if you assume that a machine should last 5 years before it gets...

    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: Convert Integer Date to DateTime

    [font="Courier New"]

    SELECT CONVERT(DATETIME,'20080204') --converts cleanly, and displays as '2008-02-04 00:00:00.000'

    SELECT CONVERT(VARCHAR,CONVERT(DATETIME,'20080204'),101) --the desired format '02/04/2008'[/font]

    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: Replace String in column

    Hi Alex;

    Wow if you'd provided that table definition up front, we wouldn't have gone thru two pages of possible solutions and misunderstandings;

    Help us help you! when you post 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: Help needed with an SP that sometimes runs slow

    I agree with Jeff on the different execution plans...

    take this part for example:

    CREATE PROC [dbo].[s4sp_IFrames_Search]

    @AffiliateId int,

    @Zip varchar(12),

    @curriculumid int = 0,

    @ExcludeClientID int = 0

    because you've assigned default values, the execution...

    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: PLz help in developing this queryy...

    What have you tried so far? what is the real, full CREATE statement for dbo.Alpha? is there a primary key?

    how do you know what row either "T" is ? 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: insert rows to other table

    here is a delete example. hope that helps, without more details it's tough.

    SET ROWCOUNT 50000

    WHILE 1=1

    BEGIN

    DELETE FROM dbo.myTable ...

    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: Triggers to Protect tracing data?

    here's a situation where I've expected a trigger to rollback because I raised an error.

    http://www.sqlservercentral.com/Forums/Topic622424-338-1.aspx

    I've also seen triggers still commit even though a Level 14 error was raised by...

    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: without using count function

    you'll need to explain exactly what you want.

    how can you have data BASED on a count if you don't USE a count?

    give us the REAL table with sample data, and...

    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: without using count function

    you need to select from the master table, and include the group as a sub select there somewhere, ie

    SELECT *

    FROM SOMETABLE

    INNER...

    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: slow performance

    Here's a detailed explanation i saved from an MS blog a while back:

    quote:

    --------------------------------------------------------------------------------

    The reason for the performance difference stems from a feature called

    "parameter sniffing". Consider a stored proc defined...

    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: Simple question for u but difficult for me

    makjain (2/7/2009)


    Then too i have 1 question if THEY provide me username and password for sql database then how my web page will work as they have windows authentication.

    Will i...

    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: Simple question for u but difficult for me

    If it's not your own server, for example if it is going to be hosted at GoDaddy or some other host, THEY will give you the user name and password...

    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: Trigger Problem-Urgent

    you don't need a trigger for this...you could handle it automatically by making status a calculated field instead of a bit you have to update:

    [font="Courier New"]CREATE TABLE TEST(

        SID INT IDENTITY...

    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: DDL Trigger for DROP Objects

    i've got a stored proc i made that i named sp_getDDL, which trolls thru the table definition and it's columns and builds the script for the table; it's probably...

    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: searching for linked server references

    just change to a temp table, no problem:

    CREATE TABLE #LinkedServers (

    ...

    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 - 11,626 through 11,640 (of 13,460 total)