Forum Replies Created

Viewing 15 posts - 10,231 through 10,245 (of 13,460 total)

  • RE: Looking for Sample Data set of US States, Cities, Zip codes

    here you go:

    GeoProject.zip

    this was the product of an afternoon of too much time on my hands...i was surfing Wiki looking at planets when they renamed Pluto to a planetoid, 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: Stored Proc doing something I didnt think was possible!

    i'd say your table's attempts column was not initialized to zero, but instead has nulls:

    select @NewAttempts = hua.attempts + 1 from hub_user_auth as hua

    where hua.id = @UserID

    would probably be better...

    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: Looking for Sample Data set of US States, Cities, Zip codes

    ok i found an old project i was screwing around with, let me know if you want it;

    it's a suite of tables, all inter related with FK's and all 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!

  • RE: Looking for Sample Data set of US States, Cities, Zip codes

    here's one i use regularly:

    ZipCityStateCounty.txt

    it's a typical thing you find for free, 42K records more or less, in a TAB delimited format i think.

    I can tweak it into comma delimited...

    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: Automatic Text File Import Challenge

    also, here is an example of converting that unusualdate format into a datetime field:

    --results:

    BeginOfMonth DaMonth ...

    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: Automatic Text File Import Challenge

    can you post some sample data you would be importing as well as the CREATE TABLE of the destination table?

    you said the first two values of 10141045 was the day,...

    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: revlogin

    BCP is what you would use to get a table or query's results into a file; you'll really need to read Books On Line for the syntax, as I rarely...

    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: Adding titles to columns in a result set

    you'll want to use the optional ALIAS for each columnname.

    descriptions with spaces require brackets or double quotes.

    based on your example, here's what it might look like:

    SELECT

    employeeid 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: other than identity option

    here's a code example of what John and roy are talking about with the calculated column:

    Create Table Example(P int identity(1000,1) , --starts at 1000

    PCODE AS 'P' + CONVERT(varchar,(P)) PERSISTED, ...

    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: revlogin

    i THINK i understood what you are after;

    it's still looking in the same view i mentioned.

    try this, and comment/uncomment the WHERE/AND statements to see the differences:

    select name,* from syslogins

    where...

    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: SUBSTRING length parameter: byte vs character length...

    yeah it seems misleading.

    I would say it is ALWAYS Characters. it's just coincidence that when you have a varchar, the bytes=# chars. i think that was what they were trying...

    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: continue after error

    the GO command after every related group of commands would do what you want, i think.

    you'd want to make sure there was no explicit transaction open i think, as well.

    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: revlogin

    jsb1212 (12/14/2009)


    how do i get just the sql logins using sp_help_revlogin?

    sp_help_revlogin serves a specific purpose: scripting out the commands to create the logins, complete with the password. it has output...

    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: Export more than 65k rows in csv

    To build on what CozyRoc said, the issue is your choice of application in opening a CSV file;

    if you use a raw text editor, like EditPlus,Notepad++,UltraEdit32, etc, they all open...

    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 2005, 2008 and VS 2008

    Gift Peddie (12/13/2009)


    I installed VS2008, SQL Server 2005 and SQL Server 2008 now Windows 7 complain about VS2005 not compatible but I ignored that. If try all programs 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!

Viewing 15 posts - 10,231 through 10,245 (of 13,460 total)