IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Outils SQL Server Discussion :

Problèmre utilisation DataBase Publishing Wizard


Sujet :

Outils SQL Server

  1. #1
    Membre régulier Avatar de Nixar
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    302
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2006
    Messages : 302
    Points : 85
    Points
    85
    Par défaut Problèmre utilisation DataBase Publishing Wizard
    Bonjour,
    Pour la mise en place de mon site .NET, j'utilise l'outil DataBase Publishing Wizard pour répliquer ma base de dev vers mon environnement de production. Tout fonctionne, sauf les erreurs ci-dessous... Je ne sais pas d'où ca vient. A l'intitulé, on dirait un problème de langue. Mon hébergeur est full anglais, et moi je travaille avec des versions françaises.

    Voyez-vous le problème?

    Merci beaucoup de vos réponses
    Les erreurs :

    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_AddUsersToRoles, Line 45
    Cannot resolve the collation conflict between "French_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_AddUsersToRoles, Line 52
    Cannot resolve the collation conflict between "French_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_AddUsersToRoles, Line 76
    Cannot resolve the collation conflict between "French_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_AddUsersToRoles, Line 83
    Cannot resolve the collation conflict between "French_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_AddUsersToRoles, Line 90
    Cannot resolve the collation conflict between "French_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_RemoveUsersFromRoles, Line 50
    Cannot resolve the collation conflict between "French_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_RemoveUsersFromRoles, Line 58
    Cannot resolve the collation conflict between "French_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_RemoveUsersFromRoles, Line 84
    Cannot resolve the collation conflict between "French_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_RemoveUsersFromRoles, Line 92
    Cannot resolve the collation conflict between "French_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 15151, Level 16, State 1, Line 1
    Cannot find the object 'aspnet_UsersInRoles_AddUsersToRoles', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 1
    Cannot find the object 'aspnet_UsersInRoles_RemoveUsersFromRoles', because it does not exist or you do not have permission.
    Une proc stock pour voir :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    /****** Objet :  StoredProcedure [dbo].[aspnet_UsersInRoles_RemoveUsersFromRoles]    Date de génération du script : 08/14/2008 12:34:54 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER OFF
    GO
    IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[aspnet_UsersInRoles_RemoveUsersFromRoles]') AND type in (N'P', N'PC'))
    BEGIN
    EXEC dbo.sp_executesql @statement = N'
    CREATE PROCEDURE [dbo].[aspnet_UsersInRoles_RemoveUsersFromRoles]
    	@ApplicationName  nvarchar(256),
    	@UserNames		  nvarchar(4000),
    	@RoleNames		  nvarchar(4000)
    AS
    BEGIN
    	DECLARE @AppId uniqueidentifier
    	SELECT  @AppId = NULL
    	SELECT  @AppId = ApplicationId FROM aspnet_Applications WHERE LOWER(@ApplicationName) = LoweredApplicationName
    	IF (@AppId IS NULL)
    		RETURN(2)
     
     
    	DECLARE @TranStarted   bit
    	SET @TranStarted = 0
     
    	IF( @@TRANCOUNT = 0 )
    	BEGIN
    		BEGIN TRANSACTION
    		SET @TranStarted = 1
    	END
     
    	DECLARE @tbNames  table(Name nvarchar(256) NOT NULL PRIMARY KEY)
    	DECLARE @tbRoles  table(RoleId uniqueidentifier NOT NULL PRIMARY KEY)
    	DECLARE @tbUsers  table(UserId uniqueidentifier NOT NULL PRIMARY KEY)
    	DECLARE @Num	  int
    	DECLARE @Pos	  int
    	DECLARE @NextPos  int
    	DECLARE @Name	  nvarchar(256)
    	DECLARE @CountAll int
    	DECLARE @CountU	  int
    	DECLARE @CountR	  int
     
     
    	SET @Num = 0
    	SET @Pos = 1
    	WHILE(@Pos <= LEN(@RoleNames))
    	BEGIN
    		SELECT @NextPos = CHARINDEX(N'','', @RoleNames,  @Pos)
    		IF (@NextPos = 0 OR @NextPos IS NULL)
    			SELECT @NextPos = LEN(@RoleNames) + 1
    		SELECT @Name = RTRIM(LTRIM(SUBSTRING(@RoleNames, @Pos, @NextPos - @Pos)))
    		SELECT @Pos = @NextPos+1
     
    		INSERT INTO @tbNames VALUES (@Name)
    		SET @Num = @Num + 1
    	END
     
    	INSERT INTO @tbRoles
    	  SELECT RoleId
    	  FROM   dbo.aspnet_Roles ar, @tbNames t
    	  WHERE  LOWER(t.Name) = ar.LoweredRoleName AND ar.ApplicationId = @AppId
    	SELECT @CountR = @@ROWCOUNT
     
    	IF (@CountR <> @Num)
    	BEGIN
    		SELECT TOP 1 N'''', Name
    		FROM   @tbNames
    		WHERE  LOWER(Name) NOT IN (SELECT ar.LoweredRoleName FROM dbo.aspnet_Roles ar,  @tbRoles r WHERE r.RoleId = ar.RoleId)
    		IF( @TranStarted = 1 )
    			ROLLBACK TRANSACTION
    		RETURN(2)
    	END
     
     
    	DELETE FROM @tbNames WHERE 1=1
    	SET @Num = 0
    	SET @Pos = 1
     
     
    	WHILE(@Pos <= LEN(@UserNames))
    	BEGIN
    		SELECT @NextPos = CHARINDEX(N'','', @UserNames,  @Pos)
    		IF (@NextPos = 0 OR @NextPos IS NULL)
    			SELECT @NextPos = LEN(@UserNames) + 1
    		SELECT @Name = RTRIM(LTRIM(SUBSTRING(@UserNames, @Pos, @NextPos - @Pos)))
    		SELECT @Pos = @NextPos+1
     
    		INSERT INTO @tbNames VALUES (@Name)
    		SET @Num = @Num + 1
    	END
     
    	INSERT INTO @tbUsers
    	  SELECT UserId
    	  FROM   dbo.aspnet_Users ar, @tbNames t
    	  WHERE  LOWER(t.Name) = ar.LoweredUserName AND ar.ApplicationId = @AppId
     
    	SELECT @CountU = @@ROWCOUNT
    	IF (@CountU <> @Num)
    	BEGIN
    		SELECT TOP 1 Name, N''''
    		FROM   @tbNames
    		WHERE  LOWER(Name) NOT IN (SELECT au.LoweredUserName FROM dbo.aspnet_Users au,  @tbUsers u WHERE u.UserId = au.UserId)
     
    		IF( @TranStarted = 1 )
    			ROLLBACK TRANSACTION
    		RETURN(1)
    	END
     
    	SELECT  @CountAll = COUNT(*)
    	FROM	dbo.aspnet_UsersInRoles ur, @tbUsers u, @tbRoles r
    	WHERE   ur.UserId = u.UserId AND ur.RoleId = r.RoleId
     
    	IF (@CountAll <> @CountU * @CountR)
    	BEGIN
    		SELECT TOP 1 UserName, RoleName
    		FROM		 @tbUsers tu, @tbRoles tr, dbo.aspnet_Users u, dbo.aspnet_Roles r
    		WHERE		 u.UserId = tu.UserId AND r.RoleId = tr.RoleId AND
    					 tu.UserId NOT IN (SELECT ur.UserId FROM dbo.aspnet_UsersInRoles ur WHERE ur.RoleId = tr.RoleId) AND
    					 tr.RoleId NOT IN (SELECT ur.RoleId FROM dbo.aspnet_UsersInRoles ur WHERE ur.UserId = tu.UserId)
    		IF( @TranStarted = 1 )
    			ROLLBACK TRANSACTION
    		RETURN(3)
    	END
     
    	DELETE FROM dbo.aspnet_UsersInRoles
    	WHERE UserId IN (SELECT UserId FROM @tbUsers)
    	  AND RoleId IN (SELECT RoleId FROM @tbRoles)
    	IF( @TranStarted = 1 )
    		COMMIT TRANSACTION
    	RETURN(0)
    END

  2. #2
    Invité
    Invité(e)
    Par défaut
    Met les mêmes Collation Name pour les 2 bases de données (dans les options).

  3. #3
    Membre régulier Avatar de Nixar
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    302
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2006
    Messages : 302
    Points : 85
    Points
    85
    Par défaut
    Bonjour et merci de ta réponse,
    J'ai modifié dans Bouton droit sur la Base/Propriétés de la base/Options/Collation, j'ai mis la valeur à "SQL_Latin1_General_CP1_CI_AS", j'ai exporté ma base avec Publishing Wizard, et j'ai toujours des erreurs...


    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_AddUsersToRoles, Line 45
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_AddUsersToRoles, Line 52
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_AddUsersToRoles, Line 76
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_AddUsersToRoles, Line 83
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_AddUsersToRoles, Line 90
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_RemoveUsersFromRoles, Line 50
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_RemoveUsersFromRoles, Line 58
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_RemoveUsersFromRoles, Line 84
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 468, Level 16, State 9, Procedure aspnet_UsersInRoles_RemoveUsersFromRoles, Line 92
    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
    Msg 15151, Level 16, State 1, Line 1
    Cannot find the object 'aspnet_UsersInRoles_AddUsersToRoles', because it does not exist or you do not have permission.
    Msg 15151, Level 16, State 1, Line 1
    Cannot find the object 'aspnet_UsersInRoles_RemoveUsersFromRoles', because it does not exist or you do not have permission.
    Y a-t-il d'autres endroits où cette valeur doit être modifiée? Je ne comprends pas à quoi elle correspond. Pourquoi alors que les valeurs semblent être identiques y a-t-il l'erreur? Vous avez une piste?

    Merci de vos réponses.

    Nixar

  4. #4
    Membre régulier Avatar de Nixar
    Profil pro
    Inscrit en
    Mars 2006
    Messages
    302
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2006
    Messages : 302
    Points : 85
    Points
    85
    Par défaut
    Résolu avec ta réponse, une erreur de ma part...

    Merci beaucoup !
    (mon problème est toujours là, mais je change de forum... Ca ne concerne plus que SQL)

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Utilisation de publish avec une fonction
    Par neoticker dans le forum MATLAB
    Réponses: 5
    Dernier message: 10/05/2011, 11h37
  2. Utiliser ez publish ou typo3 pour un intranet pro
    Par ludo007 dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 0
    Dernier message: 21/06/2010, 22h09
  3. Comment utiliser un publish/suscriber dans ma couche métier
    Par adrienfehr dans le forum Framework .NET
    Réponses: 5
    Dernier message: 14/05/2009, 11h57
  4. MS Database Publishing Wizard
    Par kouassi_denis dans le forum Outils
    Réponses: 1
    Dernier message: 11/04/2009, 23h10
  5. Utilisation de database link avec Oracle 9i+
    Par moezsokrati dans le forum Oracle
    Réponses: 1
    Dernier message: 21/01/2006, 17h45

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo