Forum Replies Created

Viewing 15 posts - 2,146 through 2,160 (of 13,460 total)

  • RE: Can I use bulk insert for this text file?

    this looks like it's from an EDI file, and the problem with EDI, is fields are optional...i doubt very much that your file has exactly four fields through the whole...

    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: Query with linked server works until where clause added

    can you try explicitly using a datetime variable? i'm wondering if it's the implicit conversion of a string to datetime that is the issue:

    select a.* b.description

    from sqlservertable a

    left outer join

    oracleparttable...

    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: removing character (Letters only)

    take a look at this thread for some high performance strip-non-numeric functions.

    you would need to change it so that it also allows dashes, but that's a trivial tweak:

    do you have...

    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: Initialize sp parameter using a select statement

    either remove the paramter, or reassign it to the new value and ignore whatever is passed:

    --ignore whatever was passed, and get the desired top

    ALTER PROCEDURE psGetInformationByProduct_Andrei

    @col1 int,@top int

    AS

    BEGIN

    SELECT @top =...

    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 restart sql browser service from my desktop to a remote server?

    sysinternals psexec can do it, so you could issue the net stop mssqlserver command against a remote server, but under what circmstances would you need to bounce the service?

    your not...

    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: HTTP Streaming in SQL

    you'd do this in a programming language. but, if you really wanna do it in TSQL...keep reading....

    the only way to do it is via CLR, because SQL, natively, does not...

    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: Is sysadm needed for the following?

    on my servers, for example, the only extended stored procs are those that were isntalled when i deployed Redgate SQL Backup.

    Like Gail said, other than a vendor that i'm familiar...

    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: Getting Backups off local drives

    the beauty of robocopy is that it checks if the file was already moved/exists/changed;

    it doesn't re-copy files that are already exist on the destination folder, which is very nice when...

    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: Getting Backups off local drives

    well, there's a few pieces to this puzzle

    1. You had to create a credential for a network user who has permissions

    2. you had to create an operator in SQL Agent...

    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: Capturing historic deadlock using Extended Event

    i've got something i'm cosnuming for SQL2008R2 for deadlocks, and comparing it to yours, my item is slightly different:

    you have

    SELECT XEvent.query('(event/data/value/deadlock)[1]') AS DeadlockGraph

    mine has this...no "deadlock" in the XEvent

    SELECT...

    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: TempDB Database

    you will most likely run out of disk space long before you approach the max number of objects.

    this is the max for any database, regardless of being a user db,...

    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 filter invalid Phone number & Email address in sql

    search for IsValidEmail here on SQL server Central; there's a few threads that looked into it pretty deeply; there's tsql versions similar to what you are testing, as well as...

    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: Need help with DB user permissions error

    i think it's a scope issue.

    it looks like technically there are two [myuser] users, in two different databases.

    they only get JOINED to be the same person when you use 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: Need help with DB user permissions error

    what database are you STARTing in?

    select * from dbo.MyTable would fail if you start in master. there's no MyTable in master, regardless of your permissions in MyDatabase

    a three part query...

    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: Getting Backups off local drives

    don't know if this helps, but i use a powershell script as a SQL Agent job step, which in turn calls robocopy to copy all my redgate *.sqb files

    that job...

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