Click here to Skip to main content
15,881,715 members
Home / Discussions / Database
   

Database

 
JokeRe: How to create SQL Backup and Restore Server-based (.mdf) Database built in Visual Studio 2010? PinPopular
Eddy Vluggen24-Apr-12 5:03
professionalEddy Vluggen24-Apr-12 5:03 
GeneralRe: How to create SQL Backup and Restore Server-based (.mdf) Database built in Visual Studio 2010? Pin
carm_ella12-May-12 23:39
carm_ella12-May-12 23:39 
AnswerRe: How to create SQL Backup and Restore Server-based (.mdf) Database built in Visual Studio 2010? Pin
Eddy Vluggen13-May-12 4:20
professionalEddy Vluggen13-May-12 4:20 
QuestionI can not drop table after upgrading to sql 2008 r2 from sql 2005 Pin
yousefshokati22-Apr-12 21:31
yousefshokati22-Apr-12 21:31 
AnswerRe: I can not drop table after upgrading to sql 2008 r2 from sql 2005 Pin
Pete O'Hanlon23-Apr-12 0:54
mvePete O'Hanlon23-Apr-12 0:54 
GeneralRe: I can not drop table after upgrading to sql 2008 r2 from sql 2005 Pin
yousefshokati23-Apr-12 1:02
yousefshokati23-Apr-12 1:02 
GeneralRe: I can not drop table after upgrading to sql 2008 r2 from sql 2005 Pin
Pete O'Hanlon23-Apr-12 1:13
mvePete O'Hanlon23-Apr-12 1:13 
QuestionSQL 2008 to SQL2005 Pin
jojoba201122-Apr-12 21:25
jojoba201122-Apr-12 21:25 
When i get the script from sql 2008 to sql 2005 without any error it finish.
when i wanna to execute the script in sql2005 i get this error :
SQL
Msg 139, Level 15, State 1, Procedure Language_Update, Line 0
Cannot assign a default value to a local variable.
Msg 137, Level 15, State 2, Procedure Language_Update, Line 9
Must declare the scalar variable "@param".


this is the part of script :

SQL
/****** Object:  StoredProcedure [dbo].[Language_Update]    Script Date: 04/23/2012 11:39:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[Language_Update] 

(@LanguageId SmallInt , @Language NVarChar(50))
AS
BEGIN
declare @param nvarchar(1000)= N'update [Common].[Language] set '
if @Language is not NULL
BEGIN
set @param = @param + '[Language]=''' + @Language + ''',' 
End
set @param= substring(@param,0,len(@param))
set @param = @param + ' Where LanguageId=''' + cast( @LanguageId as nvarchar(5)) + ''' ' 
exec sp_executesql @param
END
GO



take attention that the script is about 77000 line and i have about 200 of this type error.<br />
<br />
Please Help !

AnswerRe: SQL 2008 to SQL2005 Pin
Blue_Boy22-Apr-12 21:43
Blue_Boy22-Apr-12 21:43 
QuestionRe: SQL 2008 to SQL2005 Pin
jojoba201122-Apr-12 22:02
jojoba201122-Apr-12 22:02 
AnswerRe: SQL 2008 to SQL2005 Pin
Mycroft Holmes22-Apr-12 22:46
professionalMycroft Holmes22-Apr-12 22:46 
AnswerRe: SQL 2008 to SQL2005 Pin
Eddy Vluggen23-Apr-12 0:20
professionalEddy Vluggen23-Apr-12 0:20 
QuestionRe: SQL 2008 to SQL2005 Pin
jojoba201122-Apr-12 23:10
jojoba201122-Apr-12 23:10 
QuestionSQL Get Max for each group Pin
Richard.Berry10020-Apr-12 11:52
Richard.Berry10020-Apr-12 11:52 
AnswerRe: SQL Get Max for each group Pin
Mycroft Holmes20-Apr-12 13:40
professionalMycroft Holmes20-Apr-12 13:40 
GeneralRe: SQL Get Max for each group Pin
Richard.Berry10020-Apr-12 20:51
Richard.Berry10020-Apr-12 20:51 
GeneralRe: SQL Get Max for each group Pin
Mycroft Holmes20-Apr-12 21:23
professionalMycroft Holmes20-Apr-12 21:23 
AnswerRe: SQL Get Max for each group Pin
Jörgen Andersson21-Apr-12 1:18
professionalJörgen Andersson21-Apr-12 1:18 
GeneralRe: SQL Get Max for each group Pin
Richard.Berry10021-Apr-12 2:41
Richard.Berry10021-Apr-12 2:41 
GeneralRe: SQL Get Max for each group Pin
Jörgen Andersson21-Apr-12 6:44
professionalJörgen Andersson21-Apr-12 6:44 
GeneralRe: SQL Get Max for each group Pin
vvashishta23-Apr-12 19:16
vvashishta23-Apr-12 19:16 
QuestionSSRS 2005 question Pin
SQL Ed20-Apr-12 10:13
SQL Ed20-Apr-12 10:13 
Questionmysql to ms sql server Pin
Ramkumar_S19-Apr-12 21:27
Ramkumar_S19-Apr-12 21:27 
AnswerRe: mysql to ms sql server Pin
Eddy Vluggen20-Apr-12 0:48
professionalEddy Vluggen20-Apr-12 0:48 
AnswerRe: mysql to ms sql server Pin
jschell20-Apr-12 10:27
jschell20-Apr-12 10:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.