Forum Replies Created

Viewing 15 posts - 4,411 through 4,425 (of 7,164 total)

  • RE: Trying to trap 1st error in a restore snapshot command

    Unfortunately I do not think you can unless you execute the command from something like PowerShell or C# where there is an Exception Collection available. In T-SQL you will only...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: SQLServer with DB and reporting services

    Henrico Bekker (4/20/2012)


    3. Are you running 32bit with more than 4GB Physical Memory?

    If yes, then AWE can with additional setting to the OS make use of more memory.

    If NO, AWE...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Calling a powershell script from TSQL

    You could go down the road of using a scheduled job to act as your "PowerShell runner", just know that sp_start_job is going to start the job and return control...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: build sql string into variable

    spin (4/20/2012)


    what i now have instead of

    if A

    @var = select .......

    if B

    @var = select .......

    if C

    @var = select .......

    i've instead created 3 stored procs so

    if A

    exec proc1 val1, val2, val3

    if...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: wql query to check for creation of multiple files in a directory

    AIRWALKER-375999 (4/20/2012)


    Thanks for your response. I have already tried that appraoch but because the files are created at the same time the 2nd watcher does not recognise the 2nd...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: SQL 2008 insert into a table with foreign key constraints locks the table for a lot longer than it used to for 2005

    How did you migrate the database? If you did a backup/restore or detach/attach did you update usage stats and rebuild all your indexes after the migration?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Deadlocks report

    On SQL 2005, no, not unless you have trace flag 1222 or 1204 enabled or had a server-side trace running.

    If you're worried about deadlocks enable 1222 (only) globally and future...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Is it possible to create a database user automatically after creating a database?

    qgudex (4/19/2012)


    Thanks for the responses guys.

    I originally tried adding the account to just dbcreator, but it seems that this does not actually make the account "owner" in this case. ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: How to import data from XL to SQL server 2008r2

    For the record BULK INSERT and bcp will not import Excel files (xls or xlsx files in binary format). Those tools are meant for importing plain-text files.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Script to Get File path from a connection manager

    Happy to assist, you're in the right place to pickup a few good nudges here and there 😉

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: build sql string into variable

    .

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: build sql string into variable

    spin (4/19/2012)


    hi

    sorry i just abbreviated the joins for simplicity.

    the problem with the way your suggesting is that the select statement has many more columns and some other joined table...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: build sql string into variable

    toddasd (4/19/2012)


    opc.three, couldn't the where be combined like so (not checked for syntax):

    select a.year, a.month, a.product, b.sales, b.units

    from all_dates_and_products a

    left join my_sales b on

    a.year = b.year

    and

    a.month = b.month

    and

    a.product =...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: build sql string into variable

    OK, this was not what it looked like at first glance...but there is somethign you need to know from the outset: SQL is declarative, not interpreted, so you cannot use...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Script to Get File path from a connection manager

    Uripedes Pants (4/19/2012)


    Hi all -

    I'm very green in SSIS but I've been thrown into a major project and tasked with putting in some error handling. Specifally, I need to check...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 4,411 through 4,425 (of 7,164 total)