Viewing 7 posts - 1 through 7 (of 7 total)
DECLARE @DB varchar(25)
SET @DB = 'tempdb'
DECLARE @Tablename varchar(50)
SET @TableName = 'test12'
DECLARE @strSQL nvarchar(4000)
SET @strSQL = 'Create table '+@DB+'.dbo.'+@TableName+' ([clmnt_idno] varchar (255) NULL)'
exec sp_executesql @strSQL
This may solve ur problem.
October 10, 2006 at 2:57 am
Hi,
IIF(Fields!Sales.Value>0,
Fields!Margin.Value)/ IIF(Max(Fields!Sales.Value),
0)
Try with this.
Thanks & Regards,
Kumar KP.
July 31, 2006 at 12:43 am
Hi,
if u r hectic with msgbox remove the msgbox and keep the action what u want to commit over there.
Thanks & Regards,
Kumar kP
July 31, 2006 at 12:14 am
Hi,
This function may helpful u to retrieve the data without cleansing the data.
Create FUNCTION INTCHECK
(@addressno varchar(20)) returns integer
as
begin
declare @intIncr integer , @bool integer
set @intIncr = 1
while @intIncr < = len(@addressno)
Begin
if not (ascii(substring(ltrim(rtrim(@addressno)),@intIncr,1 ))...
July 30, 2006 at 11:28 pm
Pls. check whether this query may help u or not.
select so.name,
si.name from sysobjects so
join sysindexes si on so.id = si.id where so.xtype !='S'
Thanks & Regards,
Kumar KP
July 28, 2006 at 4:19 am
Use Northwind
Go
CREATE PROC TEST(
@DATABASENAME VARCHAR(30),
@COUNTOUT INT OUTPUT
)
AS
BEGIN
DECLARE @v_SQL nVARCHAR(4000)
DECLARE @COUNT INT
SET @V_SQL='SELECT @COUNT=COUNT(*) FROM '+@DATABASENAME+'..Authors'
EXEC SP_EXECUTESQL @V_SQL,N'@COUNT INT OUTPUT',@COUNT OUTPUT
SET @COUNTOUT=@COUNT
END
CREATE PROC CALL
AS
BEGIN
DECLARE @sql NVARCHAR(100)
SET...
July 27, 2006 at 1:10 am
Viewing 7 posts - 1 through 7 (of 7 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy