Viewing 15 posts - 601 through 615 (of 1,109 total)
One way to make this process easier is to automate it.
Books online actually list a script that "could" refresh all the dependent views:
SELECT DISTINCT 'EXEC sp_refreshview ''' + name +...
November 26, 2007 at 2:17 am
Nianz (11/26/2007)
I wish there are existing workaround. =(
It is actually not such a simple thing. For example the following returns a table with an integer column on Mondays, and a...
November 26, 2007 at 1:59 am
In the insert statement you are including in the () 16 column names, but you provide values only of 15 of them, try:
SELECT @sql='INSERT INTO #TAT_Renewal_Results (ProfileID,MembershipStatus,CompanyName,TraderID,CompanyContactFirstName,BillingAddress1,CompanyContactLastName,BillingAddress2,BillingDistrict,BillingCity,BillingCounty,BillingPostcode,BillingEmail,AdvertRenewalPrice,AdvertRenewalDate,LinkedTableName)
'
November 23, 2007 at 6:44 am
Are you using dynamic SQL? If not, have you tried adding the parameter/variable to your SQL query whose results you are inserting?
E.g.:
CREATE PROC a ( @param INT )
AS
...
November 23, 2007 at 6:20 am
On 2000 there is no varchar(max), but it is common to use ntext or image for xml.
When you say it gets truncated, does it get truncated when you query it...
November 23, 2007 at 6:11 am
The restriction for variables is that they start with @. They may contain @ later in their name. The extra @ does not change anything, the author may have used...
November 23, 2007 at 6:05 am
Jeff Moden (11/23/2007)
November 23, 2007 at 5:00 am
Have a look at the sys.parameters system view (on 2005, on 2000 look at dbo.syscolumns)
Regards,
Andras
November 23, 2007 at 4:27 am
Christian Buettner (11/23/2007)
Hi Andras,thanks for your quick response.
Can you imagine why there would be a float conversion at all?
Thanks!
Hi Chris,
honestly I'm not sure if there is a float conversion at...
November 23, 2007 at 4:25 am
It is probably worth comparing the query plans. This will give you an idea why the slow one is so slow (it may not use a particular index, ...)
Once you...
November 23, 2007 at 3:01 am
Hi Chris,
SQL Server tries to guess the data type of your constants. For 16.0000000385802490 it guesses numeric(18,16), for 16.000000038580249 it guesses numeric(17,15). You could get back the same result if...
November 23, 2007 at 2:19 am
Daniela (11/23/2007)
I am using Visual Studio 2005 (C#) with sql server 2005 Express Edition and I want to create a stored procedure that accepts a table as parameter
an parse that...
November 23, 2007 at 2:07 am
It is using SQL Server 2005. Steve Davidson, and many other Steves 🙂 could give you more information.
Regards,
Andras
November 22, 2007 at 6:17 am
Depends on what problem you are talking about :). They have some nice solutions for scheduling, redundant storage, etc. If you want to read about some of these search on...
November 22, 2007 at 6:14 am
zafar (11/22/2007)
i wants maintain different versions of my database ie (SP, tables etc)How can i do that ?
You could script your database and keep the script files in source control....
November 22, 2007 at 6:09 am
Viewing 15 posts - 601 through 615 (of 1,109 total)