Archived Months
January 2003
March 2003
April 2003
May 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
April 2008


all groups > sql server programming > august 2005 > threads for friday august 26

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Handling large amounts of data for reporting?
Posted by Lucas Tam at 8/26/2005 9:07:23 PM
Hi all, I have an application which logs a considerable amount of data. Each day, we log about 50,000 to 100,000 rows of data. We like to report on this data... currently I'm using a stored procedure to calculate the statistics, however since this is an ad hoc, reports take a while to...more >>

sql server desktop engine and sql server graphic tools
Posted by CindyH at 8/26/2005 5:07:04 PM
Hi Does anyone know how to use sql server desktop engine with the enterprise Manager vs using osql? Thanks, Cindy ...more >>

Help. Error converting nvarchar to numeric?
Posted by Casey at 8/26/2005 4:29:03 PM
Okay. I have this function in vb.net. It's purpose is to query the sql server, and return me a count. Here is the function: Private Function _countCallsCameIn(ByVal ApplicNum As String, ByVal date1 As String, ByVal date2 As String) As Integer '...the query were going to use... ...more >>

SQL ERROR - HELP
Posted by Mark Moss at 8/26/2005 3:41:53 PM
Gentlemen and Ladies Below is the complete query that I have convert over from HQL to SQL and I am getting one last error which is Server: Msg 170, Level 15, State 1 Line116 Line 52: Incorrect Syntax Near ')' I am running lines 65 thru 115 when I get this...more >>

Is this right?
Posted by WhiteJul at 8/26/2005 2:31:27 PM
Please check my sintax for MS SQL 2000 query: Update Geo_Location Set Driver_Route# = '12101', Pedestrian_Route# = '15201' Where MAIN_LOCATION = 'Q28-41' OR MAIN_LOCATION = 'Q29-41' OR MAIN_LOCATION = 'Q30-41' OR MAIN_LOCATION = 'Q30-42' OR MAIN_LOCATION = 'Q29-42' OR MAIN_LOCATI...more >>

Joining to Derived Tables
Posted by wnfisba at 8/26/2005 2:19:02 PM
How can I join to a derived table??? My derived table would look like... (SELECT file_id, MAX(DATETIME) AS MAXDATE FROM DataTrac.dbo.NOTES WHERE group_id = 'SRV' GROUP BY file_id) MAXDTTM and I would need to LEFT OUTER JOIN from a table called GEN matching by file_id. A LEFT OUTER...more >>

Compare database on developer and enduser server
Posted by PawelR at 8/26/2005 1:29:08 PM
Hello Group, Sorry my english is very littel. In my company I have two servers: first developer server (DevSvr)- for developers and second server (MainSvr)to use for other emplooy - for user of application. One of databases was changed on DevSvr (add new tables, sp, indexes etc.). How compar...more >>

validate nvarchar as integer
Posted by John Smith at 8/26/2005 1:21:41 PM
I'm trying to run a data-validation query in SQL Server, but am not sure how to do it. create table testTable (ValidatedID INTEGER, EnteredValue NVARCHAR(30)) UPDATE testTable SET ValidatedID=CAST(EnteredValue AS INTEGER) WHERE ISNUMERIC(EnteredValue)=1 AND CAST(EnteredValue AS INTEGER) IN...more >>



Upload/Download to/from a SQL db.
Posted by JDArsenault at 8/26/2005 12:20:03 PM
I have a requirement to be able to upload a file (let's say xls spreadsheet) to a table, and then have someone else be able to download that same file, modify it and re-upload it again. This is common place for SharePoint using SQL, but my requirement doen't involve SharePoint. Any ideas, exam...more >>

posting 20050826
Posted by berde_h NO[at]SPAM 40networks.com at 8/26/2005 11:19:31 AM
"Listening to the victims, I can't begin to understand the pain I inflicted on these innocent people," Rudolph said in his statement, which he read afte r 14 victims or their relatives read statements. Two other statements were r ead into the record. Gwedif sprouted a tentacle and placed it on ...more >>

Order in the middle of a table
Posted by Arjen at 8/26/2005 11:19:10 AM
Hi, I publish a table on a website. At the end of each row I want to show an up- and downbutton. The buttons haves an id as parameter. Inside my table I have a vieworder column, this is the way I sort the table. What I want is that when you press on the up- or downbutton that record move...more >>

SQL reader issue
Posted by Dave at 8/26/2005 11:16:31 AM
I tried posting this on microsoft.public.dotnet.languages.vb.data, but got no responses. Maybe I'll have better luck here. I'm using Visual Studio 2003 and inline VB.NET, not code-behind. ---------------------------------------------------------------------- I am confused by the behavior...more >>

Most efficient way to update/insert order details?!
Posted by JorgeC at 8/26/2005 11:07:03 AM
Hi! I've been working on a stock management software for a couple of months. The user creates/changes stock documents which have a header and several hundreds (usually) lines. Now, when we change a stock document (deleting, adding, changing lines) the current software deletes all rows before...more >>

How check user name?
Posted by Oleg Cherkasenko at 8/26/2005 10:54:54 AM
I have COM object working with database via connection with administrative rights. I need method for checking user name: can this user has db access or no. I want to check: 1. SQL Server users 2. Windows users which added as a SQL Server logins/db users 3. Windows users which can connect ...more >>

Help..I'm being thrown under the bus...
Posted by Bob at 8/26/2005 10:48:12 AM
Hi Folks! I'm working with a small group and I'm writing a VB app that gets data from a SQL Server. One or more of my collegues has found a way to make my queries timeout. The database has about 15% usage and all the usage statistics are low. Most of the time the queries work fine but I...more >>

Problem with Create Index...
Posted by erobles75 at 8/26/2005 10:46:04 AM
Hi. When I create an Index, the following message appears me Server: Msg 8662, Level 16, State 1, Line 1 An index cannot be created on the view 'VW_CAM' because the view definition includes an unknown value (the sum of a nullable expression). The view doesn't contain any value in Null, att...more >>

EXCEL / SQL SERVER HELP - URGENT
Posted by MS User at 8/26/2005 10:02:06 AM
I got a stored procedure with 1 parameter and I want to call this stored procedure inside an Excel Query , I tried ..dbo.MySP ? It return with error message "Parameters are not allowed in queries that can't be displayed graphically" The purpose for this approach - This would allow m...more >>

can a view of a table imrpove table input performance?
Posted by Rich at 8/26/2005 9:22:03 AM
I have a table (sql Server2k) which users connect to through ODBC - read only. I have to input/write a lot of data to this table everyday. I observed that it takes a lot longer to populate this table than one which is not public. I am guessing that people have this table open through ODBC. ...more >>

NON-DETERMINISTIC?
Posted by Lynn at 8/26/2005 9:00:55 AM
I am trying to create a unique constraint on a computed column. I've tried unique index, too, but they both fail w/this error: Server: Msg 1933, Level 16, State 1, Line 2 Cannot create index because the key column 'msgID' is non-deterministic or imprecise. ideally, i just want endpoint+M...more >>

Textboxes causing cell size to increase
Posted by tshad at 8/26/2005 8:45:08 AM
I have two tables that line up correctly. But when I add textboxes into the cells of my table, and it is close to the right edge of the table, it increases the size of the cells making all the rest of the cells get out of position. I have cellspacing and cellpadding set to 0, and borders=1...more >>

scheduled jobs are failing
Posted by tag at 8/26/2005 7:01:03 AM
I had about 30 schedule jobs that either import data or run sql queries. They have worked wonderfully for months. All of a sudden they are failing. I get the error message 203 ENVVAR_NOT_FOUND which translates to The system could not find the environment option that was entered. I don't...more >>

Problem with query, trying to pull different date from the same field
Posted by hugo.flores NO[at]SPAM ge.com at 8/26/2005 6:57:35 AM
Hi, I have a table of tests, and I want to be able to get the pass and fail totals on the tests. Here's what I have so far select month(lastmodified),datename(mm,(lastmodified))as month, count(id_status) as Total, id_status from tests where id_status = 2 or id_status = 3 group by month(la...more >>

Set parameter inside SELECT stored procedure
Posted by Assimalyst at 8/26/2005 6:29:52 AM
Hi, I have a stored procedure that produces a table: SELECT DISTINCT tblPatient.pntCode, tblPDT.pdtDate, Survival..... FROM tblPatient, tblPDT WHERE.... ORDER BY..... I now need to do some calculations on the genearated table. things like count all rows, count the number of different pn...more >>

32 bit clients apps on 64 bit SQL Server
Posted by Poncho NO[at]SPAM home at 8/26/2005 6:23:03 AM
I need some confirmation. Is there any document from Microsoft that states no changes need to be made to 32Bit Windows based Client/Server apps to access data on a 64Bit SQL Server? We code with VB6 an use MDAC to access our SQL Server DB, if a client wants to move his SQL Server to a 64Bit...more >>

DBREINDEX/ARITHABORT
Posted by Lynn at 8/26/2005 4:49:06 AM
Goodmorning everybody. I have a maint job that runs once weekly - this is one of the agent job steps: EXEC db1..sp_MSforeachtable @command1='DBCC DBREINDEX (''*'')', @replacechar='*' EXEC db2..sp_MSforeachtable @command1='DBCC DBREINDEX (''*'')', @replacechar='*' EXEC db3..sp_MSforeachta...more >>

Merge apparent duplcate rows into 1 row?
Posted by Assimalyst at 8/26/2005 4:17:22 AM
Hi, I have a select query that can generate apparent duplicates; this occurs because the Histology value is determined from a table tblSample, this may contain a number of samples for the same location as there are different methods of obtaining samples sometimes 2 or more method are used to ...more >>

Collation matter
Posted by Enric at 8/26/2005 4:15:01 AM
Dear all, We've got one db allocated in a SQL SERVER 7.0 and another one with compatibility with 6.5 and now we want to move it to SQL SERVER 2000. Change collation at server/db is easy, but problem is for all the columns. Does anyone have any script for do that automatically? Thanks a...more >>

bad query executionplan
Posted by lutz.jahnke NO[at]SPAM nord-com.net at 8/26/2005 3:54:36 AM
Hallo! I'm having a problem with bad query executionplans. The optimizer won't get the right plan to execute the query fast. The optimizer perform cluster index scan instead of using a index seek an also using a hash join instead of a loop join. Now, when I set a join hint to use the loop...more >>

Inline user-defined function
Posted by CodeRazor at 8/26/2005 3:39:02 AM
Hi, I am trying to create an inline user-defined function. The code below works fine, however I want to be able to put an "If else" statement in it, so that depending on the @variable entered, a different Select clause will execute. How can I put an If Else clause within the code below? ...more >>

Time Difference Calculations
Posted by Trigger at 8/26/2005 2:04:02 AM
I am trying to calculate the time difference between two cells, However I have tried the datediff but it does not display the answer that i require, I am looking for the time diffence to be displayed in months, days, hours, mins and seconds, Can anyone give any help? Also, Is there any w...more >>

SET OF INT
Posted by Just D. at 8/26/2005 12:09:16 AM
I need to get a set of int values from some query and use this set later in the same SP. The query is looking like this: (SELECT SomeID FROM tblTable WHERE SOMECONDITION ORDER BY SomeID) How can I store the set of these integer values into a temporary variable and what type should I u...more >>

Can we restore database to a specific folder
Posted by ad at 8/26/2005 12:00:00 AM
I want to resotre a databse from a backup file like: restore database Health from disk='c:\Health.bak' WITH REPLACE The Health database did not exist in my SQLServer before restore. After restore, it will add a .mdf in some folder. How can I assign a folder to store the .mdf when restore? ...more >>

Case Expression
Posted by Adam at 8/26/2005 12:00:00 AM
Hi all, I am trying to execute a query that shortens selected string values beyond a certrain point (40 characters), thus provide a summary. If the string is less than 40 characters the whole string is returned. My attempt so far is: SELECT id, Case task WHEN Len(task) > 40 Th...more >>

Dynamic SQL Statement for Cursor
Posted by Ben at 8/26/2005 12:00:00 AM
Hi I have a cursor that I need to pass a dynamic sql statement to that is in a variable, is this possible? e.g. DECLARE curOneRecord CURSOR FOR @SQL Thanks B ...more >>

How to restore a database when the database is deleted
Posted by ad at 8/26/2005 12:00:00 AM
I use backup database pubs to disk='c:\pubbackup.bak' to backup pubs database. Then I detach pubs, and delete pubs.mdf and pubs.lof After delete the files, I use restore database pubs from disk='c:\pubbackup.bak' to restore database form backup file, but it fail with message: "Can...more >>

VB.NET newbie access to SQL Server
Posted by SJ at 8/26/2005 12:00:00 AM
Hi all, I know this is a SQL group and I now apologise for posting in the "wrong' group, but I had difficulty tracking down the "suitable" group. I thought that a lot of people here would be able to help me. To my question. I'm learning VB.net from scratch myself with no "official" help....more >>

How to perform a new backup every time
Posted by ad at 8/26/2005 12:00:00 AM
I use the statement below to backup my database backup database Health to disk='c:\Health.bak' The size backup file Health.bak will increment every time when I perform the statement even I did not modify the database. For example, the first time after I execute the backup statement...more >>

How to change Recovery mode
Posted by ad at 8/26/2005 12:00:00 AM
We can use the codes below to get the recovery mode of a database: select DatabasePropertyEx('test', 'Recovery') Now I want to change a database's Recovery to SIMPLE. How can I do that? ...more >>


DevelopmentNow Blog