PDA

View Full Version : |Suporte| Sql server



RodrigoDW
23/02/2016, 08:35 PM
olá meus amigos, então estou com um problema que não consigo resolver troquei de Servidor Dedicado instalei um SQL SERVER 2008 R2 do zero novamente porem tenho alguns problemas, ao rodar querys pesquisei a minha duvida no site da Microsoft porem não entendi nada. Se alguem tiver como me auxiliar ou como resolver tal problema definitivamente.
Sempre que vou rodar uma Query da o seguinte erro Msg 2714, Level 16, State 6, Line 1 confusedbusquei a solução na Microsoft vou da um exemplo de uma query que tento rodar e como a microsfot diz que seria a forma correta quando tal erro é apresentado. Desde já obrigado !

Minha Query " A MESMA É DO SITE QUE O iFreeHP postou junto ao template para o MuSite 2.5

USE [webSite]
GO
/****** Object: Table [dbo].[webScreenshots] Script Date: 08/17/2010 17:56:37 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[webScreenshots](
[id] [int] IDENTITY(1,1) NOT NULL,
[image] [varchar](50) NOT NULL,
[uploadBy] [varchar](10) NOT NULL,
[date] [int] NOT NULL,
[rate] [tinyint] NOT NULL,
[legend] [varchar](50) NOT NULL,
[sw] [smallint] NOT NULL CONSTRAINT [DF_webScreenshots_sw] DEFAULT ((0)),
[sy] [smallint] NOT NULL CONSTRAINT [DF_webScreenshots_sy] DEFAULT ((0)),
[cw] [smallint] NOT NULL CONSTRAINT [DF_webScreenshots_cw] DEFAULT ((0)),
[cy] [smallint] NOT NULL CONSTRAINT [DF_webScreenshots_cy] DEFAULT ((0))
) ON [PRIMARY]


GO
SET ANSI_PADDING OFF

Solução encontrada no site da Microsoft porém não entendi

USE DatabaseName
GO

[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]

[Only registered and activated users can see links]

[Only registered and activated users can see links]
BEGIN
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
[Only registered and activated users can see links]
END

Marceliin
24/02/2016, 09:42 AM
Da erro aqui -> USE [webSite]
Deve ser porque o nome da sua database do site está diferente , basta alterar para o nome que você utiliza.

RodrigoDW
24/02/2016, 10:03 AM
Marceliin agredeço sua resposta amigo mais estou usando a DB webSite como está ali mesmo :/

Marceliin
24/02/2016, 10:41 AM
Manda mp com skype , que eu vejo o que pode ser.

jhonhy™
24/02/2016, 01:02 PM
RodrigoDW, crie a db webSite e rode a query

RodrigoDW
24/02/2016, 11:04 PM
@Marceliin ([Only registered and activated users can see links]) Obrigado amigo irei lhe mandar MP com o skype
@jhonhy™ ([Only registered and activated users can see links]) Caro amigo como eu falei em cima a DB já está criada só que da os erros citados acima !
[Only registered and activated users can see links]