Archived Months
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
all groups > sql server new users > recent posts

Easy Money
Posted by Jim Day at 3/30/2008 9:20:21 PM
Make Money Fast by Transforming 6 Dollars into Thousands of Dollars Here's a legal way to supplement your income by earning thousands of dollars using the standard mail delivery service. IT WAS PROVEN on Oprah and is COMPLETELY LEGAL! You Can Laugh at Money Worries if You Follow This Simple ...more >>


RE: SQL Server Help
Posted by martin at 11/14/2007 12:10:10 PM
this didn't fix the error for me From http://www.google.com/search?hl=en&q=sql+server+books+online+"no+search+provider+has+been+selected" Posted via DevelopmentNow.com Groups http://www.developmentnow.com...more >>

Re: Exporting column with data type money into Excel
Posted by Tobias Frei at 11/2/2007 9:33:16 AM
I forgot that newsgroup-format does not allow the Euro-sign. The data arrives in Euro or in DM... "Tobias Frei" <t.frei@eagle-peak.de> schrieb im Newsbeitrag news:%23Zga5mSHIHA.4712@TK2MSFTNGP04.phx.gbl... > Hello, > i have the following problem: I like to export data from a sql-view into ...more >>

Exporting column with data type money into Excel
Posted by Tobias Frei at 11/2/2007 9:23:59 AM
Hello, i have the following problem: I like to export data from a sql-view into an excel sheet. The data arrives in the corresponding columns but i have the problem that in one column data arrives with annotation "?" as well as "DM". In SQL-Server, I updated the columns with data type money...more >>

"SQL Server does not allow for remote connections"
Posted by R.A.M. at 11/1/2007 7:44:36 AM
Hello, Please help in the following problem: I cannot create database beacuse of error: SQL Server does not allow for remote connections. In fact, I use .NET utility program: aspnet_reqsql -S SQLEXPRESS -E -A all -d "D:\MIM-Magazyn\App_Data\aspnetdb" and I receive the following messag...more >>

Re: How to: find the last time a procedure was compiled and why
Posted by Andrew J. Kelly at 10/31/2007 5:23:15 PM
It doesn't work that way, you need to cross apply the sql text like this: SELECT t.[text] AS [Adhoc Batch or Object Call], SUBSTRING(t.[text], (qs.[statement_start_offset]/2) + 1, ((CASE qs.[statement_end_offset] WHEN -1 THEN DATALENGTH(t.[text]) ELSE qs.[statement_end_offset] ...more >>

Re: UPDATE OR INSERT in one statement?
Posted by Steve Dassin at 10/31/2007 4:24:12 PM
MERGE is like PIVOT, just some syntatic sugar:) The real issue is having a 'view' aware of relationships between tables and making a decision of what operation to perform when it is hit with a row. This is what I would like in Sql Server: http://beyondsql.blogspot.com/2007/06/dataphor-intelligen...more >>

Re: How to: find the last time a procedure was compiled and why
Posted by Edmund at 10/31/2007 4:15:48 PM
Hi Andrew, I've tried the following but with the database name in place of {db} and so on. It does not get me anything. Does that mean there is no execution plan in the database for it. I've run the stored proceedure so there should be something there. SELECT * FROM sys.dm_exec_query...more >>



Re: How to: find the last time a procedure was compiled and why
Posted by Andrew J. Kelly at 10/31/2007 1:34:21 PM
It is not a stored procedure it is a view. More specifically a Dynamic Management View or DMV. You can find details in BooksOnLine. -- Andrew J. Kelly SQL MVP Solid Quality Mentors "Edmund" <die_spambot@hatespam.com> wrote in message news:OEUS7E%23GIHA.280@TK2MSFTNGP03.phx.gbl... ...more >>

Re: UPDATE OR INSERT in one statement?
Posted by Andrew J. Kelly at 10/31/2007 9:03:40 AM
Not with any of the released products. SQL2008 will include a MERGE command that does exactly this. Currently you need to do something like this: UPDATE MyTable SET Name = 'Bill WHERE UserID = 5 IF @@ROWCOUNT = 0 INSERT INTO MyTable (Name, USERID) VALUES ('Bill,5) -- Andrew J. ...more >>

UPDATE OR INSERT in one statement?
Posted by Ralf Kaiser at 10/31/2007 12:00:00 AM
Hello, is it possible to create one statement that updates a table if a record is already present and inserts new data if the record does not exist before? Something like (Pseudo-Code!!!): UPDATE_OR_INSERT MyTable SET NAME = 'Bill', USERID=5 WHERE USERID=5 That should update the fi...more >>

Re: dump and import data?
Posted by Ekrem_Önsoy at 10/31/2007 12:00:00 AM
Alternatively, open up Management Studio and connect to your instance. Go to that database which stores your tables and right click on that database. You'll see Tasks and Import and Export in that menu. You can use these stuff to import into your tables and export from them. P.S. If you ...more >>

Re: How to: find the last time a procedure was compiled and why
Posted by Edmund at 10/31/2007 12:00:00 AM
Hi Andrew, What is the the sys.dm_exec_query_stats DMV? I've looked in the systems stored procedures in the database but do not see one by that name. E "Andrew J. Kelly" <sqlmvpnooospam@shadhawk.com> wrote in message news:%23$A3sLbGIHA.1208@TK2MSFTNGP03.phx.gbl... > If you are on SQL ...more >>

Re: dump and import data?
Posted by Tom Moreau at 10/30/2007 6:15:35 PM
Check out bcp.exe in the BOL. -- Tom ---------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS SQL Server MVP Toronto, ON Canada https://mvp.support.microsoft.com/profile/Tom.Moreau "Jim" <stopspam@redmond.com> wrote in message ...more >>

Re: Exporting email archive from SQL 2005
Posted by Jim in Arizona at 10/30/2007 4:23:57 PM
"tdstr" <tdstr@booger.net> wrote in message news:uqT4K4%23FIHA.484@TK2MSFTNGP06.phx.gbl... > Total SQL newbie here. Hope I'm posting in the correct group. > > I have a Exchange 2003 server that archives all email to a large(55GB) SQL > database. I have a situation where I have to export sev...more >>

dump and import data?
Posted by Jim at 10/30/2007 1:33:37 PM
Using SQL Server 2005 Dev and SQL Server Manager, how do I dump a table and it's data to a file then import it into another table? I see the options "Script Table as" and then the Create To, Drop To, etc. options, but all of those only put the structure in the file. What am I missing? Th...more >>

Re: Table joins and views nesting; maximum
Posted by Hugo Kornelis at 10/28/2007 9:48:35 PM
On Sun, 28 Oct 2007 12:00:00 -0700, Barry Burke wrote: >Whats the 'normal' maximum count of tables in a join and what if there are >views involved. >What about nesting views Hi Barry, Tom answered the first question. Re the second questions - views are somewhat like macros: they get ...more >>

Re: How to: find the last time a procedure was compiled and why
Posted by Andrew J. Kelly at 10/28/2007 6:50:53 PM
Sorry but I just realized you also wanted the reason for a recompile as well. That can only be found via a trace as Adam suggested AFAIK. Since the plan is removed and replaced with a new one each time it recompiles the previous data is lost. -- Andrew J. Kelly SQL MVP Solid Quality M...more >>

Re: How to: find the last time a procedure was compiled and why
Posted by Andrew J. Kelly at 10/28/2007 6:36:02 PM
If you are on SQL 2005 have a look at the sys.dm_exec_query_stats DMV. The Creation_Time should give you what you want. -- Andrew J. Kelly SQL MVP Solid Quality Mentors "Edmund" <die_spambot@hatespam.com> wrote in message news:OW10fSXGIHA.4584@TK2MSFTNGP03.phx.gbl... > > Thanks ...more >>

Re: Table joins and views nesting; maximum
Posted by Tom Moreau at 10/28/2007 3:13:19 PM
A single query - including a view - can access up to 256 tables. Typically, joins involve 2 - 4 tables but can often go beyond that. It depends on the app and how normalized your schema is. -- Tom ---------------------------------------------------- Thomas A. Moreau, BSc, PhD, MCSE...more >>

Table joins and views nesting; maximum
Posted by Barry Burke at 10/28/2007 12:00:00 PM
Whats the 'normal' maximum count of tables in a join and what if there are views involved. What about nesting views...more >>

Re: How to: find the last time a procedure was compiled and why
Posted by Edmund at 10/28/2007 12:00:00 AM
Thanks Adam, I'll give this a try. By the way, if any does know how to select this information from the system tables, I'm still checking this thread for an answer. "Adam Machanic" <amachanic@IHATESPAMgmail.com> wrote in message news:04F4785E-C06F-4282-A550-93D5572640F8@microsoft.com......more >>

Re: How to: find the last time a procedure was compiled and why
Posted by Adam Machanic at 10/28/2007 12:00:00 AM
I am not aware of any way to query that information from the system catalog. What you can do if you want to start monitoring recompiles is set up a server-side trace and watch the SP:Recompile event. You can periodically insert the trace data into a table, and then you will have your own runn...more >>

Re: grouping query, concatenate records?
Posted by Hugo Kornelis at 10/27/2007 10:48:09 PM
On Fri, 26 Oct 2007 09:39:49 -0700, HX wrote: >How can I concatenate specific fields across records in a query? Hi HX, If this is formatting for output, then the answer is that you should let the client handle it. This will always be a slow operation on the server. For versions of SQL ...more >>

Exporting email archive from SQL 2005
Posted by tdstr at 10/26/2007 11:34:10 AM
Total SQL newbie here. Hope I'm posting in the correct group. I have a Exchange 2003 server that archives all email to a large(55GB) SQL database. I have a situation where I have to export several emails from that database. However at this point I am clueless on how to accomplish this. A...more >>

grouping query, concatenate records?
Posted by HX at 10/26/2007 9:39:49 AM
How can I concatenate specific fields across records in a query? Here is the layout of my table: CREATE TABLE [rdb].[image_use]( [RecordID] [int] IDENTITY(1,1) NOT NULL, [ImageID] [int] NULL, [ModuleID] [int] NULL, [LessonID] [int] NULL, [TopicID] [int] NULL, [PageID] [varchar](50)...more >>

How to: find the last time a procedure was compiled and why
Posted by Edmund at 10/26/2007 12:00:00 AM
Hello, Does anyone know how to select the last time a stored procedure was compile and which recompile condition caused it? Thanks, E ...more >>

RE: Restore a DB from a Live Database
Posted by Andrew Hayes at 10/25/2007 9:57:00 PM
Which version of SQL Server are you using? I know that when using the Restore Database... option in Management Studio (2005), you can just change the name of the Database the backup is being restored to. For example: Destination for restore - "To database:" DBname_Test Source for res...more >>

Re: How to shrink/truncate transaction log file in SQK2K
Posted by Andrew J. Kelly at 10/25/2007 4:58:40 PM
Have a look at these: http://www.karaszi.com/SQLServer/info_dont_shrink.asp Shrinking considerations http://www.nigelrivett.net/TransactionLogFileGrows_1.html Log File issues http://www.support.microsoft.com/?id=317375 Log File Grows too big http://www.support.microsoft.com/?id=11013...more >>

How to shrink/truncate transaction log file in SQK2K
Posted by Mehbs at 10/25/2007 11:46:55 AM
My transaction log file is pretty big and am trying to run maintenance plan which is setup to clear the unused space etc. But it does not run. It keep erroring out saying administrator has no rights to run. Is there any other way of running or shirinking log file? ...more >>


DevelopmentNow Blog