MSGROUPS.NET | Post Question | About | Groups | Contact | Register | Login



microsoft public excel misc (9093)

microsoft public outlook general (7339)

microsoft public excel programming (6569)

microsoft public word docmanagement (5607)

microsoft public excel worksheet functions (5040)

microsoft public access (4768)

microsoft public windowsxp general (3874)

microsoft public windows vista mail (2957)

microsoft public windows vista general (2783)

microsoft public windows live mail desktop (2699)

microsoft public office misc (2268)

microsoft public access queries (2122)

microsoft public powerpoint (2030)

microsoft public greatplains (1998)

microsoft public windows server sbs (1972)

microsoft public dotnet languages csharp (1964)

microsoft public access formscoding (1932)

microsoft public mac office entourage (1868)

microsoft public sqlserver programming (1861)

microsoft public access forms (1798)

microsoft public internetexplorer general (1706)

microsoft public mac office word (1699)

microsoft public access modulesdaovba (1691)

microsoft public outlook calendaring (1436)

microsoft public dotnet framework aspnet (1375)

microsoft public project server (1356)

microsoft public windowsupdate (1353)

microsoft public sqlserver server (1332)

microsoft public project (1285)

microsoft public excel (1277)

microsoft public access reports (1249)

microsoft public windowsxp help and support (1204)

microsoft public exchange admin (1185)

microsoft public windowsmedia player (1165)

microsoft public mac office excel (1160)

microsoft public windows server general (1100)

microsoft public dataprotectionmanager (1096)

microsoft public outlook (1035)

microsoft public word vba general (1029)

microsoft public vb general discussion (1001)

microsoft public outlook contacts (953)

microsoft public windows server active directory (930)

microsoft public development device drivers (911)

microsoft public dotnet languages vb (843)

microsoft public outlook installation (820)

microsoft public word newusers (808)

microsoft public word pagelayout (783)

microsoft public windowsce platbuilder (757)

microsoft public excel charting (733)

microsoft public publisher (728)

microsoft public excel newusers (711)

microsoft public windows powershell (697)

microsoft public pos (658)

microsoft public vc mfc (651)

microsoft public access gettingstarted (630)

microsoft public word application errors (629)

microsoft public sharepoint general (604)

microsoft public office setup (584)

microsoft public onenote (556)

microsoft public sqlserver reportingsvcs (550)

microsoft public outlookexpress general (539)

microsoft public frontpage client (532)

microsoft public access tablesdbdesign (529)

microsoft public scripting vbscript (528)

microsoft public windows 64bit general (512)

microsoft public outlook program vba (502)

microsoft public windows live messenger (434)

microsoft public windowsxp hardware (416)

microsoft public money (397)

microsoft public windowsxp basics (367)

microsoft public dotnet general (316)

microsoft public windows mediacenter (300)

microsoft public windows inetexplorer ie6 outlookexpress (276)

microsoft public mac office (272)

microsoft public win98 gen discussion (243)

microsoft public sharepoint setup and administration (225)

microsoft public windows vista hardware devices (183)

microsoft public windows vista music pictures video (178)

microsoft public nntp test (163)

microsoft public windows vista performance maintenance (148)

microsoft public dotnet framework (148)

microsoft public visio (128)

microsoft public access 3rdpartyusrgrp (68)

microsoft public access conversion (64)

microsoft public dotnet xml (58)

microsoft public pt windowsxp (38)

microsoft public access developers toolkitode (34)

microsoft public windows live photogallery (32)

microsoft public dotnet faqs (19)

microsoft public dotnet framework aspnet datagridcontrol (16)


microsoft.public.sqlserver.programming Post New
Items(1854) /38 Next >> Last >|
Subject Posted Replies From
Cross apply from function not working

I have the following function: *************************************** USE [Northwind] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO create FUNCTION [dbo].[fnTops] (@Top int, @CategoryID int) RETURNS TABLE AS RETURN SELECT TOP(@Top) ProductName, UnitPrice FROM dbo.Products WHERE CategoryID=@CategoryID ORDER BY UnitPrice DESC; ***************************************** If I do: select * from [dbo].[fnTops](3,5) It returns 3 rows fine. If I do: SELECT CategoryID, CategoryName, ProductName, UnitPrice FROM dbo.Categories C CROSS AP

9/6/2010 4:17:14 AM 1 "tshad" <...@dslextreme.com>
Single quote vs. double quote

I think I've read somewhere about the differences between single quote and double quote in a sql query. I happened to see at least 1 of the differences between them today when I was playing pivot with my sql server 2008. I simplified the table as below, just to make your life easier. CREATE DATABASE [BugTracker] Go Use [BugTracker] Go CREATE TABLE [reports]( [rp_id] [int] IDENTITY(1,1) NOT NULL, [rp_chart_type] [varchar](8) NOT NULL, CONSTRAINT [pk_reports] PRIMARY KEY CLUSTERED ( [rp_id] ASC )) insert into reports values ('pie') insert into reports values ('pi

9/4/2010 6:28:21 PM 2 Author <gnewsgr...@gmail.com>
Help with a stored proc

Could someone please help a newbee! I have been asked to create a report using sql and VB 2010/Crystal reports. My boss has asked that the report look like the following. Note the (A/G) (F/G) (P/G) are warehouses. And the A/G for example is how it's designated in the database table. A/G F/G P/G ----- ---- ---- Product ID Sales Price Cost Sales Price Cost Sales Price Cost -----------

9/4/2010 5:02:03 PM 2 =?Utf-8?B?RGF2aWQ=?= <duckkille...@gmail.com>
deadlocks

Hi guys, Under SQL-Server2005 (native ODBC), I have 2 statements and a beautiful deadlock 1205 message when I do this: statement 1 : BEGIN TRAN UPDATE mytable SET field=NULL where x=45 statement 2: UPDATE mytable SET field=NULL where x=45 -- here i'm locked, sounds good... but now statement 1: UPDATE mytable SET field=NULL where x=45 statement 2: Transaction (Process ID xxx) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. If I try this under Sybase 15.0, I don't have this me

9/4/2010 9:04:50 AM 3 stef <stef.pellegr...@gmail.com>
SqlClr error with using (SqlConnection con = new SqlConnection("context connection=true;"))

This same code works in other systems but the one i tried it on generates the following. Does anyone know what this means? Sql2005sp3. thanks dan A .NET Framework error occurred during execution of user-defined routine or aggregate "GetRSECalculatedTravelTimes": System.TypeInitializationException: The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Data.SqlClient.SqlConnectionFactory' threw an exception. ---> System.TypeInitializationException: The type initializer for '

9/3/2010 10:43:56 PM 0 Dan Holmes <dan.hol...@routematch.com>
Subselect in a grouping query

I have the following SELECT...GROUP BY code that is giving me the error "Column 'dbo.PayChecks.CheckID' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause." which I understand but not sure how to fix it. In this query I want to get a total of a column (GrossPay) from a related Timesheet table. I have done this before in a non-grouped query. Any help is appreciated. SELECT C.PeopleLinkID, MIN(P.LastName) AS LastName, MIN(P.FirstName) AS FirstName, D.DedCode, SUM(D.DedAmount) AS Dues, (SELECT

9/3/2010 8:34:06 PM 4 =?Utf-8?B?RGF2aWRD?= <dlch...@lifetimeinc.com>
sql room booking query

hai, I am Doing room booking .for eg if a user enter the Need from date as 2/10/2010 and Need to 7/10/2010.booked if another user go for booking so i have to check three conditions.for availability. 1)if another user enter 23/09/2010 to 2/10/2010 is nt possible 2)Also datetime shouldnt be between 2/10/2010 and 7/10/2010 3)also from 7/10/2010 to any other date greater than 7/20/2010 nt possible. pls give hw can i write the querry????

9/3/2010 2:03:16 PM 4 "vidya" <u64...@uwe>
usign inner join in subselect

The following SQL gives me different results than if I use "=" rather than "inner join" in the 2 subselects in the select statement. The inner join sub selects give me one blanket value for the whole column whereas the "=" subselects give me distinct values for each row. I've tried putting an alias on the purchase table however then the subselect gives an error message of "invalid object name" when I refer to the alias. If I jsut replace inner join with = it works fine but I was wondering if anyone had an explanation? thanks Jane SELECT purchase.po_id, address_a.a

9/3/2010 1:14:51 PM 1 Jane <jane.harri...@gmail.com>
SQL query Help

CREATE TABLE [dbo].[FileHeader]( [LedgerKey] [uniqueidentifier] NOT NULL, [SubmittedDate] [smalldatetime]NOT NULL CONSTRAINT [FileHeader] PRIMARY KEY NONCLUSTERED ([LedgerKey] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] CREATE TABLE [dbo].[FileBody]( [LedgerKey] [uniqueidentifier] NOT NULL, [TransactionID] [uniqueidentifier] NOT NULL ) ON [PRIMARY] INSERT INTO [FileBody] ([LedgerKey] ,[TransactionID]) VALUES ('F92B4920-D748-4DF8-9182-E6C524F7840A','585

9/1/2010 7:54:03 AM 0 =?Utf-8?B?UGV0ZXIgTmV3bWFu?= <PeterNew...@discussions.microsoft.com>
subquery returned more than one value

When I run this query: update a set a.[UPC] = b.[IDSCE], a.[AltDescription] = b.[IDESC], a. [Weight] = b.[IMNNWU], from [ProductVariant] a inner join [IIMWEB] b on a. [SKUSuffix]=b.[IPROD] I receive an error: The statement has been terminated. Msg 512, Level 16, State 1, Procedure trig_NotificationProduct, Line 19 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.

9/1/2010 11:47:47 AM 2 Mary Phelps <icanhel...@gmail.com>
Add Column / Drop Column Not Replicating in Subscription

Dear Sir, I have created one publication & created one subscription for one database. If I Add / Modify / Delete any records at Publisher or Subscriber level it replicated in both database properly while synchronize it. But if I Add or Drop any column of Table at publisher level it doesn't replicated at subscriber level. Please note in Subscription option the value of property Replicate Schema Changes is TRUE. Please help me how to replicate changes of schema. Thanks, Sanjay Shah MICROBRAIN Computers Pvt. Ltd. Mobile No. +919769401050

9/1/2010 11:56:34 AM 0 "SANJAY SHAH-MICROBRAIN COMPUTERS PVT. LTD." <san...@microbrain.in>
How to get 2 Max values?

I have following 2 tables (T1, T2) and rows: T1 (Column: Id) ---- 1 2 3 4 T2 (Columns: Id, Value) ---- 1, 1 1, 2 1, 3 1, 4 2, 1 2, 2 2, 3 2, 4 3, 1 3, 2 3, 3 3, 4 4, 1 4, 2 4, 3 4, 4 The result-set I need is: --------------------------------------- 1, 3 1, 4 2, 3 2, 4 3, 3 3, 4 4, 3 4, 4 i.e for each Id from T1, I need 2 max values from T2. How do I write the query?

9/1/2010 7:12:51 PM 0 "Dukhti_Siri" <u64...@uwe>
how to import emails

Hi All, I'm being tasked with importing emails regarding service interruptions from several different ISP's into SQL Server 2008 R2. I've never done this before. Where should I start? Thanks, Eric

9/1/2010 8:08:11 PM 0 "new DBA in '09" <ericbra...@gmail.com>
SQL Express 2008: Select User Name to Login

Hello: I am working through the tutorials. I have created user Mary. The next bit is about how she can not access anything yet. Oh, really? I want to see what happens if she does. I try to login under Mary and can not. The User name field is disabled. The docs says that it is only available when logging in using Window Authentication, but that is exactly when it is not available. The Connect to Server form comes up with: Server type: Database Engine Server name: Loop\SQLEXPRESS Authentication: Windows Auth

9/1/2010 9:23:47 PM 3 Gene Wirchenko <ge...@ocis.net>
Get all Parent Child data of a table

Hi, I have a table that have two column one is ParentID and other is ID . Such that ID Parent ID 1 1 2 1 3 1 4 2 5 2 6 4 I need to do waht is : If i said i need all parent, child for ID 1 than it should return 1,2,3,4,5,6 If i say to get data for ID 5 than it should return 5 If i

9/2/2010 5:05:23 AM 1 "HP" <...@text.com>
tsql help - get change or created line item

Hi All, I have an order history file. It has an Action column to store action performed on the order. Order Id, Action, Date 1, Created, 8/1/10 1, Changed, 8/15/10 1, Changed, 9/1/10 What is the best t-sql to say Give me the most recent changed date for all orders And if there is no Changed status just give me the Created date. Now I can imagine doing this by stringing the sql together and then executing the sql string but is that the best way? Thanks, rod.

9/2/2010 12:57:03 PM 1 =?Utf-8?B?cm9kY2hhcg==?= <rodc...@discussions.microsoft.com>
query doesn't complete - Pls help

Hi, the following query which has been used many times before, just never seems to complete this time. Other than a table name, nothing has changed. The table being updated has 16 million rows and the other views used in the select have 216 and 360 million rows. The query has been running for 18hrs now. It has necessary indexes. my search online, found some results where it says that sometimes with SQL 2005, SP2, some people have had this problem, but did not find anything that would help me. I checked for indexes, ran the DBCC free proccache killed and restarted the query

9/2/2010 1:38:03 PM 1 =?Utf-8?B?TmV0TmV3Ymll?= <NetNew...@discussions.microsoft.com>
Subquery returned more than 1 value

When I run this query: update a set a.[UPC] = b.[IDSCE], a.[AltDescription] = b.[IDESC], a. [Weight] = b.[IMNNWU], from [ProductVariant] a inner join [IIMWEB] b on a. [SKUSuffix]=b.[IPROD] I receive an error: The statement has been terminated. Msg 512, Level 16, State 1, Procedure trig_NotificationProduct, Line 19 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. How do i go about fixing this issue.

9/2/2010 2:26:04 PM 0 Mary Phelps <icanhel...@gmail.com>
schema comparison tool

Looking for a good, free tool to compare schema and objects across servers. Have a dozen+ servers that are running different schemas and need to identify differences. I've done a search here on the forum, but most threads on this subject are from two or more years ago. Want to know if there is a new development in this area. http://www.sqlmonster.com/Uwe/Forum.aspx/sql-server/41704/Schema-Comparison-Checker Appreciatively, MrTexasFreedom

9/2/2010 2:27:50 PM 0 "MrTexasFreedom" <u64...@uwe>
Help Optimize Code

I have created t-sql script listed below to create t0, t1, t2 ,and t3 user accounts (first cursor) with there corresponding passwords with only processadmin server role. Next cursor is used for all user accounts (t0, t1, t2, t3) have already been created. Need to make sure only processadmin server role is applied to the user account. It's important that if the user accounts already is created that they are not created and ensure they have the only have processadmin server role permission. Please help me optimize the code listed below. Thanks so much for the help.

9/2/2010 3:26:10 PM 1 =?Utf-8?B?Sm9lIEsu?= <J...@discussions.microsoft.com>
Granting rights to backup program

Hello - What Sql Server rights are typically given to a backup program that backs up the entire server? Sysadmin works obviously, but that seems like the rights are excessive. Any help will be appreciated. -- Sheldon

9/2/2010 3:44:03 PM 0 =?Utf-8?B?U2hlbGRvbg==?= <Shel...@discussions.microsoft.com>
Update trigger

Could somebody show me how to update a trigger. I havent created any trigger but it exists in one of the databases we bought for shopping cart. I have to make some modifications to that.

9/2/2010 4:56:32 PM 0 Mary Phelps <icanhel...@gmail.com>
how to return difference in datetime values as a timespan

Hello, DATEDIFF returns an integer, which I suppose I could use to build a timespan string, but I'd like to avoid reinventing any wheels. How do I retun the difference in two datetime values as a "timespan" value that won't completely confuse the report user? To me, "02:14:37" represents two hours, fourteen minutes, and 37 seconds. For example, what's the best way to determine the NapLength value in the following query results? DECLARE @NapTimes TABLE ( NapID INT , StartTime DATETIME , EndTime DATETIME ) INSERT INTO @NapTimes SELECT 1, getdate(), dateadd(minute, 75,

9/2/2010 5:33:47 PM 0 "new DBA in '09" <ericbra...@gmail.com>
Query to find all zip4's inside polygon

I need to find a way to run a SQL query to find all lat/long points in a table which are within a polygon which is defined by several lat/long points. For example, I have this table which includes ALL ~700,000,000 possible Zip+4 positions with the corresponding lat/long values. CREATE TABLE [dbo].[Zip4Coordinates]( [Zip4] [varchar](10) NOT NULL, [Latitude] [decimal](12, 9) NOT NULL, [Longitude] [decimal](12, 9) NOT NULL) And say I have 4 lat/long points (moving in clockwise pattern on map) which make up my polygon. In this case, it's 4 lat/long points, but could be up t

9/2/2010 8:18:53 PM 0 "Chris" <cmill...@hotmail.com>
What is the proper syntax for thsi sql:variable?

Hi, I'm using SQL Server 2005. I have DECLARE @keyword varchar(4096); SET @keyword = LOWER('abc'); SELECT DISTINCT ... OR (vo.address1 LIKE sql:variable("@keyword")) but I'm getting a SQL server error on the line containing "sql:variable" -- Incorrect syntax near 'sql' . Any ideas how to properly write the "LIKE" clause using the sql declared variable? Thanks, - Dave

9/2/2010 8:38:50 PM 0 laredotornado <laredotorn...@zipmail.com>
can TIME values be aggregated?

Hello, Can time values be aggregated? I'm putting together a summary report that will need to show the sum time that something happened. (Employee breaks, for instance.) If break times for 3 employees were "01:00:00", "00:15:00", and "00:12:30" in length, how do I aggregate them to get "01:27:30"? Simply treating them like char values so they can be parsed into integers and added and then divided by 60 doesn't seem like the best way. Thanks, Eric

9/2/2010 8:53:42 PM 0 "new DBA in '09" <ericbra...@gmail.com>
print number of update records through sql job

I have update statement which updates column name (auditor_details) in a churn of 5000 records at a time of auditor table which contain 3.2 millions records. I have schedule this through sqljob. I'm looking over sql example to check for update records and gives a output and quit the jobs if no update records. Thanks in advance

9/3/2010 2:47:03 AM 1 =?Utf-8?B?c3Fsbm92aWNl?= <sqlnov...@discussions.microsoft.com>
Can't trim white space from large varchar field

Hi, I am reading two very large varchar fields (2600) from the sql server 2005 database of our ERP. This reading is being done by a cursor. In the cursor select statement I rtrim and ltrim the field. No matter what I do the length of the field is always 2600. I can see that there is some sort of white space to the right of the text. Whatever that white space is, it can't be trimmed by ltrim or rtrim. I tried running the sql from the cursor as a query and had the same problem. Any help would be appreciate it. fig000

9/3/2010 4:25:09 AM 6 fig000 <stringma...@gmail.com>
Different databases join performance

Hi, is it true that joining tables in different databases on the same SQL server instance is slower than joining tables in the same database? I read this article about join performance: http://www.sqlusa.com/articles2005/linkedserver/ I find the results very strange.. This is what the author write: -- JOIN tables in same database USE AdventureWorks; DECLARE @StartTime datetime DBCC DROPCLEANBUFFERS SET @StartTime = getdate() SELECT SlsOrds = count(*) FROM Sales.SalesOrderHeader soh -- 31K INNER JOIN Sales.SalesOrderDetail sod -- 121K on soh.SalesOrderID = sod.SalesOrderI

8/31/2010 8:54:58 PM 2 Johnny Persson <...@a.a>
Need help to search for extra space in all tables.

I try to search for data which has some extra spaces in ALL TABLES. Does any one know if there a tool that can do that or the scripts can return all the data (see desire results below). Thank you in advance. SQL2008. IF OBJECT_ID('Tempdb.dbo.#T1', 'u') IS NOT NULL DROP TABLE #T1 GO CREATE TABLE #T1 ( FullName VARCHAR(30) ) GO INSERT INTO #T1 VALUES ('Joe Smith') INSERT INTO #T1 VALUES ('April Smith ') INSERT INTO #T1 VALUES ('Peter Chen') INSERT INTO #T1 VALUES ('Kristine Nguyen') GO IF OBJECT_ID('Tempdb.dbo.#T2', 'u') IS NOT NULL DROP TABLE #T2 GO CREA

8/31/2010 5:08:03 PM 1 =?Utf-8?B?TE4=?= <...@discussions.microsoft.com>
Using tempdb as a users default database

Hi, I would like to ask what people think of using Tembdb as a users default database. I ask this because, when the instance is re-started tempdb is recreated and any user accounts in there are lost, however, i beleive, that any user gets access to tempdb and master by default. The reason I make all my users have tempdb as their default database is that I used to set it to master (or some other database) and often they would simply log in with SSMS and run create scripts straight away and the the wrong database would have all the wrong objects - you should see some of the mast

8/30/2010 11:59:48 PM 4 Martin <martycather...@gmail.com>
SELECT * in Programs

As far as I can remember, this has been a "no no". But what would you answer developers who say " We want the program to bomb when the table is out of sync with program definiton"? Thanks in advance

8/30/2010 5:33:03 PM 5 =?Utf-8?B?Ukc=?= <...@discussions.microsoft.com>
install Business Intelligence

How to install Business Intelligence? Is Integration Service and Analysis Service part of the BI? Do I need to pay for Business Intelligence?

8/30/2010 3:49:03 PM 1 =?Utf-8?B?cGVsaWNhbg==?= <peli...@discussions.microsoft.com>
How to write this query?

Hi, I'm using SQL Server 2005. I have a query that returns multiple rows in which all the column values are the same except one ... Results id text category ===================== 2 Hello ABC 2 Hello DEF Does anyone know how I would write this query such that I could combine into a comma-separated list, the "category" column, so that the results would return as a single row -- e.g. id text category ===================== 2 Hello ABC, DEF Thanks, - Dave

8/30/2010 2:43:24 PM 2 laredotornado <laredotorn...@zipmail.com>
UNDERSTANDING MDF FILE FORMAT

Hi, Any one knows how mdf file is structured, and how it saves data in binary format, I am studying how to design a database. I will appreciate any link on Internet. Thanks and Regards, Luqman

8/30/2010 2:59:52 AM 2 "Luqman" <pearls...@cyber.net.pk>
sql help required

sql 2000 i have following 2 tables CREATE TABLE [idtab] ( [uid] [int] NOT NULL , [uid2] [int] NOT NULL , [system] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , CONSTRAINT [PK_idtab] PRIMARY KEY CLUSTERED ( [uid], [uid2], [system] ) ON [PRIMARY] ) ON [PRIMARY] GO CREATE TABLE [sectab] ( [id1] [int] NULL , [id2] [int] NULL , [system] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] GO i m populating values from sectab to idtab as idtab contains composite primary key i only wants to insert those values which doe

8/29/2010 11:54:29 PM 1 Jami <jami.k...@yahoo.com>
help with sq

*** Sent via Developersdex http://www.developersdex.com ***

8/29/2010 11:44:18 PM 0 Jami <jami.k...@yahoo.com>
Energy Saving Tips

1. Reduce heater's room temperature For each extra degree (Celsius) of temperature, your heater will consume 7 to 11% more energy. Adjust it to 18degrees which is also better for your health. 2. Install a programmable thermostat You will be able to control the heater's temperature during specific hours every day. 3. Insulate your house Loss of heat is loss of energy. 4. Fix air leaks 5. Close the chimney of the fireplace when you don't use it It is designed to drive smoke (hot air) out of the house! 6. Get an energy audit to advice you about the necessary fixes and insulation 7.

8/29/2010 9:11:42 PM 0 ".." <sustainable.future...@gmail.com>
Which service pack is installed

How can i know on sql server which service pack is installed?

8/29/2010 10:50:37 AM 2 "Roy Goldhammer" <r...@yahoo.com>
table error problem

Hello there I have procedure who create temp table #tmp, store a lot of data inside it for moving it to another database. on any 5 rerun of the procedure in job i'm getting an error like: Attempt to fetch logical page (1:73868) in database 2 failed. It belongs to allocation unit 72057594108903424 not to 72057594124763136 I have recreated all the used tables. and it still happen. What can cause it?

8/29/2010 8:17:47 AM 3 "Roy Goldhammer" <r...@yahoo.com>
Help with Trigger

I would really appreciate some help with a trigger I have a Soheader table and a customer table. I would like upon data entry to update the Soheader.sotypeid field with the customer.user5 field when the soheader.custid is selected. so upon entry or change of the soheader.custid I would like the Soheader.sotypeid field to get updated with the value on the customer.user5 field. where soheader.custid = customer.custid thanks very much S Commar

8/28/2010 10:23:03 PM 5 "Sammy" <s_com...@hotmail.com>
Dynamic sql

When executing dynamic sql, how can you avoid issues if delimiters are in the data ? Assume I have a list box in an applicaion with the following values.... ABC 3' 879 Plus many more they may select... If I do something like.... where Item = 'ABC'or Item='3'' or Item ='879' I've got a problem... how might I avoid this ?

8/29/2010 12:33:21 AM 1 "Robbie" <ro...@yahoo.com>
CELKO, I have a problem with your book "Analytics & OLAP in SQL"

CELKO, your Analytics & OLAP in SQL book arrived last week and I started reading it today. Unfortunately, pages 13 through 60 are missing. Could you possibly replace it for me, or perhaps send me a PDF of the missing pages? I need to read it sooner rather than later.

8/29/2010 12:52:07 AM 13 "new DBA in '09" <ericbra...@gmail.com>
SQL server on virtual machine on network

I can ping the server, but I do not see the SQL server from Management Studio although through RDP I can connect to it and work directly on the server. Furthermore, I cannot create an ODBC driver to access data from it. Could I have some clues how to solve this? Thank You

8/28/2010 9:51:46 AM 1 Mahen Luximan <m.luxi...@gmail.com>
Check for values that are not integer

How can I query a column to check for values that have a decimal value. I want to change the data type of a column in a table but I 1st want to confirm there are no values like 3.24 or any other decimal value. thanks in advance, bob

8/28/2010 1:08:54 AM 3 "Bob McClellan" <bob...@tricolift.RemoveThis.com>
freight class

SQL 2005 Assuming the below PCF and Class columns were in a table, how would I create a query, with PCF known, to find the proper freight class? I started with SWITCH, but that just goes on forever. Thanks! FREIGHT CLASS CHART The first column shows the pounds per cubic foot (PCF). The second column shows freight class. So when the PCF is greater than the number in the first column, than the class will likely be the number in the second column. PCF Class 50 ... 50 35 ... 55 30 ... 60 22.5 ... 65 15 ... 70 13.5 ... 77 12 ... 85 10.5 ... 92 9 ... 100 8 ... 110

8/28/2010 12:04:50 AM 1 "shank" <sh...@tampabay.rr.com>
Finding multi database dependencies of a stored procedure in SQL Server 2000

Using SQL Server 2000. I am faced with a daunting task of listing all the tables/views (from multiple databases) that are referenced in a few stored procedures. In other words, I want an accurate list of all tables and views referenced in a stored procedure. These tables are present in multiple databases. Note that I am not searching for "a table name" in the stored procedure, but want a list of all tables used in it. sp_depends is not an option because it may have missed dependencies. Querying syscomments may also not be accurate as a table name occuring in syscomments.text ma

8/27/2010 11:15:06 PM 5 Shocky <yusuf.bhiwandiw...@gmail.com>
Case in Order By clause

Can you use multiple columns in an ORDER BY clause with a CASE statement. I can do: SELECT * FROM TableA ORDER BY CASE @SortByLevel WHEN 1 THEN Level ELSE Name END But I want to use both columns in the ORDER BY but in reverse order.l SELECT * FROM TableA ORDER BY CASE @SortByLevel WHEN 1 THEN Level, Name ELSE Name, Level END I get an error on the comma. Is there a way to do this without Dynamic Sql? Thanks, Tom

8/27/2010 9:29:25 PM 3 "tshad" <...@dslextreme.com>
um schnell geld , wie kann ich schnell geld machen , am meisten geld machen , schnell legal an geld , jetzt sofort schnell geld gewinnen , hold em poker online spielen , kostenloses gewinnspiel , schn

um schnell geld , wie kann ich schnell geld machen , am meisten geld machen , schnell legal an geld , jetzt sofort schnell geld gewinnen , hold em poker online spielen , kostenloses gewinnspiel , schnell geld machen in , geld verdienen mit , geld verdienen durch internet , * * * +++ SOFORT GEWINN +++ REICH WERDEN +++ * http://WWW.SOFORT-GEWINN-JETZT-1.NET http://WWW.SOFORT-GEWINN-JETZT-1.NET http://WWW.SOFORT-GEWINN-JETZT-1.NET http://WWW.SOFORT-GEWINN-JETZT-1.NET http://WWW.SOFORT-GEWINN-JETZT-1.NET http://WWW.SOFORT-GEWINN-JETZT-1.NET * * * schnell viel geld v

8/27/2010 4:14:22 PM 0 jienchin...@yahoo.de
Inserting data not found

Hi, I'd like to know how can I insert on another table the records that were not found on the another table. Example: I've a table: tbl1: CodeBIN (int) 2222 3333 4444 5555 .... .... I'd like to know the records that DON'T exists on a second table: tbl2: CodeBin (int) 2222 4444 6666 .... In this case will insert the 3333, 5555 because they dont exists on the tbl2 tblInsertedNotFound CodeBin (int) 3333 5555 .... .... using MS-SQL2000 thank you!

8/27/2010 2:07:51 PM 2 "Paulo Roberto Bianchi de Oliveira" <polive...@intectecnologia.local>

Pages: 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 32 33 34 35 36 37 38









Newest Articles

Hi,ICopiedSomeTextAndPhotosFromAWebsite+PastedThemInAnEmailFromThi
40 min. 2 sec. ago

Recover Format 400GB External Hardive
1 hour 36 mins ago

KEVIN J0HN PANNZKE WON the BATTLE
2 hour 19 mins ago

Cross apply from function not working
3 hour 1 mins ago

Mouse cursor freezes up semi-permanently with whole computer
3 hour 53 mins ago