Forum Replies Created

Viewing 15 posts - 2,251 through 2,265 (of 13,460 total)

  • RE: How to efficiently import data in .rpt format into SQL 2008

    if it is plain text, i'd just use bulk insert instead of building an SSIS package;

    for me, that would be faster than anything else.

    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: Checking user's AD Group

    both ways are available via the extended proc xp_logininfo , but the limitation is the group/user has to be added to SQL first before you can enumerate them.

    if 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: BCP and remote paths

    from a real command window, bcp has access to all shares that the caller(you) have access to;'

    but if you call bcp from xp_cmdshell, it is almost certainly using a different...

    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 job to execute multiple queries and email

    it depends on the shape of the data you want to report;

    Can All 50 queries results be placed in a temp table, or do you need each resultset? just...

    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: UK date in text field as a true date

    you'll wnat to set your session variable for dateformat to handle this for you:

    SET DATEFORMAT DMY

    select

    cast ('14/02/2014' as date)

    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: Search Special characters

    i think you just need to switch to a binary collation, otherwise accented letters like àâáãäå are all the same as 'a', right?

    Select * From [Table] Where [Column] Like '%[^0-9a-zA-Z...

    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: When I script out a Stored Procedure it encloses stings in Double Quotes?

    if SSMS scripting option below is selected, then dynamic SQL is generated to handle the if not exists, and that is what you are seeing.

    you pasted just a piece of...

    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 with query to find free time in a patient's schedule

    well, it's not going to be easy, but this will get you started;

    because you are not using the right data types (a string containing '9:00 - 9:30a' instead of two...

    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: sys tables grant access to sql user

    to grant a user the ability to see the metadata stuff for any object in a database, without granting access to the data within those objects, you can grant VIEW...

    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 post xml string to url in storedproc?

    SQL server is probably not the target platform you want to use for this; is this supposed to send / retrieve information from the web service and return it 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: Procedures and functions with cross-database dependencies

    on the same server, i believe it's no problem; every query eventually gets resolved to all objects to thee part naming conventions...database.schema.object;

    I have a system I babysit that we recently...

    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: varbinary start with 0x504B0304140002000800

    elham_azizi_62 (7/2/2014)


    hello.

    this is one information in my varbinary column:

    0x504B0304140002000800335EF7362920563A3AB<snip>

    please edit your post and remove that varbinary string. it does not help, and just muchs up teh post to make it...

    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: Select date where <year part = '2014'>

    there is a YEAR function that returns an integer, that can do what you are asking:

    there is also a DATEPART function that can do the same, but you can pull...

    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: Schema comparision

    gajayku (7/2/2014)


    Hi

    Thanks for quick response. Let assume that I have schema of both source and destination in the following formats.

    In excel File, I have columns (Id, Name, Salary) 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: Schema comparision

    where is the comparison going to occur? in a script task , likecomparing rows in a datatable DataTable to DataTable, for example?

    on the SQL server so you can use...

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