Forum Replies Created

Viewing 15 posts - 12,391 through 12,405 (of 13,460 total)

  • RE: getdate function

    make sure you use a field that is datetime. it can contain both the date and the time together; if you stored it as a varchar, change it to solve...

    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: Question: Listing jobs that run against a specific database

    gotta watch for any scripts that use sp_MSFOREACHDB and also that selects from master.dbo.sysdatabases as well. any script susing that wouldn't explicitly say the db name, but might be using...

    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: Easy way to filter out invalid characters?

    yes there is an easy efficient way;

    look at this post:

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

    there, someone wanted to replace extended ascii with the html encode; ie '‘Special Digital Data Service Obligation’ got some characters stripped...

    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 - Repopulate Full Text Catalog After Migration

    thank you Pam!

    I didn't know they did that in 2005. much easier to restore I assume, since it's part of the backup.

    In the original posters case, since the backup came...

    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 image file in an IMAGE column

    this will work for any binary file it was here on SCC from 07*02/2007 post if you want to google the whole thread.

    INSERT INTO myTable(Document) 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: SQL Server 2005 - Repopulate Full Text Catalog After Migration

    am i wrong? i thought full text catalogs were not part of the database, but a separate file stored on the server, so you needed to back those up separetely,...

    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 7, 2000 Administration

    you should script the deletes and truncates manually;

    when people say they want to delete the data, they are really saying just certain data...they typically don't want to dete teh data...

    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 2000 vs. 2005 T-SQL output results vary

    using SQL2000's QA to connect to botha SQL2000 and SQL 2005, i get the same results that your SQL 2000 did; no null row; i changed SET ANSI_NULLS on 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: txt file importing

    ok i got a vb project to work based on your parameters...here's my question;

    in your example, the file had 5 columns. typically, BULK INSERT would expect 5 columns for all...

    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 in adding Percentage column

    how about this?

    SELECT

    RegionDesc,

    MATotal,

    PartsTotal,

    DemandTotal,

    Total,

    (CASE WHEN ISNULL(Total,0.00) = 0 then 0

         ELSE  ISNULL(MATotal,0.00)    +

               ISNULL(PartsTotal,0.00) +

               ISNULL(DemandTotal,0.00)   / Total END) * 100 As Percentage

    FROM SOMETABLE

    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: Joining to a table with a comma delimited field

    look in the script contributions for the split() function.

    it takes a delimited list and turns it into a table, so your statement woudl simply change to this:

    "user_accounts 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: RENAME OF USERS CHANGE OWNER SHIP

    here's the answer to both questions: change a login name:

    --Usage: EXEC pr_RenameLogin 'webdev', 'WebDeveloper'

    --modified from from http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=408&lngWId=5

    ---Code should be put in master database ---

    CREATE PROCEDURE...

    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 a MAX score issue

    i think this is nothing more than adding a HAVING statement to the query you posted:you might need to select max(score), testcount as a separate subquery instead because of all...

    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: Securing a Payroll database on Public Server

    is a design change so that the fields are stored as encrypted data instead of plain text/numbers out of the question?

    I recently had to do that, redid the table so...

    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: Subscribe To Forum is VERY cool.

    got to any forum. Upper right corner has a link to click "Forum Options"

    first popup link says "Subscribe to Forum"

    next page allows you to change to get instant email notifications....

    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 - 12,391 through 12,405 (of 13,460 total)